Mimic Redux using Context API and useReducer Hook

added by JavaScript Kicks
11/22/2018 8:52:50 AM

483 Views

Redux is a global state manager. React Redux provides bindings for React apps. In this article, I will show how we can manage global state using reducer functions just like how Redux does. useReducer hook has a few limitations. We cannot use the hook with the same reducer more than once.


0 comments