DEV Community

Discussion on: Replacing React's Redux library with the useReducer Hook

Collapse
 
lexiebkm profile image
Alexander B.K.

I am still learning Redux, RTK, and React-Redux. But since I have seen React Hooks provide useReducer, I begin to think whether it will be sufficient to just use useReducer with Context for global state management, instead of Redux.
If I have to use Redux, I need to apply all the concepts, APIs provided in Redux, RTK and React-Redux.
So, useReducer + Context seems to be an alternative; but I am not sure if they really fit to large codebase.