python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
How to retain props or state in a react component?
I have a component, compA that receives props as an array and uses it to display an element. I need the ids that come down to compA as a prop to be appended to the array idsToDisplay which out replaci...
Babitha
Votes: 0
Answers: 1
Data shared between different users and requests in Next.js?
I do not know how to ask this question more formally. I was looking for state management in React while using Next.js, for example redux or react-query. I have seen a lot of comments that say somethin...
entropyfeverone
Votes: 0
Answers: 0
Updating a state in React leads to auto-updation of another state
I have two local states, UserList and ModifiedUsers in my App function. The UserList is supposed to capture an array of user objects from an API, and ModifiedUsers will operate on a copy of the array ...

Shree Nandan Das
Votes: 0
Answers: 2
React state doesn't seem to be fetching api and setting state before render
I'm trying to fetch an api of quotes and populate the react component with the first one. Later I'll use the button to pick a random one. I'm just now learning react, my react tutorial in freecodecamp...
Rawle Juglal
Votes: 0
Answers: 1