Question · React Native course · Module 4: State and API data
When to use useReducer?
When is it worth using useReducer instead of useState?
Answer options
- Always - it's faster
- When state is complex and has many related actions
- Only in class components
- Never - useState is enough
You can check the correct answer by solving this task in the CodeWorlds game.