2 questions · 2 answered
React questions
Questions asked by learners preparing for interviews and placements, answered by other members. Ask your own and it appears here too.
- 2answers 6votes useEffect running twice? useEffect with [] calls my API twice. only in dev, production build is fine. what am I doing wrong ReactTushar Goyal·28 days ago
- 3answers 9votes React state shows old value right after setState const [count, setCount] = useState(0); function handleClick() { setCount(count + 1); console.log(count); // prints old value } why? I literally just set it ReactKavya Nair·2 months ago
Learn React properly
Structured lessons on DSA, core CS, Java and interview skills, each ending in a quiz so you know it stuck.