python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to make setting state with useEffect() to run on page refresh?
My code is not long or complicated at all. It's simple. so please read!
(Im using react + next.js)
In the root file, app.js, I have useEffect to fetch photo data. This data array will be used in a pa...
user18553387
Votes: 0
Answers: 1
Creating a soundtrack app in JavaScript to search and display tracks
I'm trying to build a small JavaScript program which allows the users to enter a search query, and then find the results of these query and display them through an asynchronous request. Below you can ...
Andrea Berger
Votes: 0
Answers: 0
React.js: Fetching Data from API with Bearer Token
I am building a React.js SPA, that receives data from an API with Bearer Token Authentication (so a fetch request for authentication has to be done first and the given token can be used temporarily to...
David
Votes: 0
Answers: 1
Looping over JSON objects synchronously NodeJS
I'm requesting a JSON API then doing a for each loop over a JSON object and want a way to know once it's complete.
This is my current for each loop
Object.entries(jsonbody.data.users).forEach(([key, v...
Charlie Simon
Votes: 0
Answers: 1