Manage complex states with useReducer
When you started learning React, π§ you surely got to know useState for managing the state of your functional components. βοΈ But did you know that there exists another hook called useReducer that does the same thing? π±
Hi! I'm Ernesto, and in this p...
ernestoangulo.hashnode.dev9 min read
Pritam Patil
Web Developer
Nice article. I was wondering if there's a tool like we have for Redux (Redux DevTools) that shows dispatched actions and the payload if we use 'useReducer'. Had been using 'useReducer' for sometime but didn't come across such tool.