easy5 pts · first answer countsreactstrict-mode
Logs that appear twice
In development, a console.log in a component body appears twice per render, and effects run, clean up and run again on mount. Why?
Discussion 0
Join free to post in the discussion.
Related questions
- Why React lists need keysFrontend Developer
- Input that ignores typingFrontend Developer
- Changing a prop inside a childFrontend Developer
- Typo in a variable nameFrontend Developer
- Result type of findFrontend Developer
- What JSX turns intoFrontend Developer
- A component written in lowercaseFrontend Developer
- Adding a CSS class in JSXFrontend Developer