DEV Community

Discussion on: State Management in Pure React with Hooks: useReducer

Collapse
 
bravemaster619 profile image
bravemaster619

I'm used to react-redux. Today I've used react-redux for my react project. The problem is, I've used react-redux for react classes but recently I migrated to react hooks. And the new project is using react hooks. Should I use useReducer for react hooks?

Collapse
 
bipinrajbhar profile image
Bipin Rajbhar

The useReducer is actually a React Hook. It's a part of React API.

The useReducer Hook does 80% of Things what Rudex Does.

I will suggest you use Both.

For more info: medium.com/javascript-scene/do-rea...