DEV Community

Discussion on: useReducer instead of useState while calling APIs!

rubenruvalcabac profile image
Ruben Ruvalcaba

Great tip. I've faced many times updating more than one state and never felt well updating each one separately. This technique is lengthy but cleaner and prioritize separatation of concerns.

Some comments have been hidden by the post's author - find out more