DEV Community

Discussion on: useState vs useReducer: What are they and when to use them?

Collapse
 
ramjak profile image
Rama Jakaria

The problem with reducer is it's required a lot of boilerplate. I usually won't use it unless the state is really complicated and require additional testing.