Prerequisutes: - Basic understanding of JavaScript - Basic understanding of array functions - Basic understading of React - Basic understading of hooks in react Introduction In simple words, useReducer is a hook used for state management in react. D...

Markdown supported Β· ββ΅ to post
Charae Eh Sin
Full Stack Developer Intern
Thanks for this! The hooks that I mostly use are
useState,useEffect, anduseContext. I've went through the docs on more complex hooks likeuseReducerbut still haven't fully grasp most of them. I think now I get the idea ofuseReducerand it does look like Redux (with the dispatch and all). Perhaps I'll try to use it next time. Perhaps it will seem less scary with a bit of practice π