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?
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?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...