React Hooks Quiz
5 minutes
Quiz
Answer all questions. You need 70% or higher to pass.
1. Which hook is used to manage state in functional components?
2. When does useEffect run with an empty dependency array?
3. What should you return from useEffect for cleanup?