DEV Community

loading...

Discussion on: useReducer instead of useState while calling APIs!

Collapse
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.
Thanks!

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

Forem Open with the Forem app