DEV Community

Discussion on: New Redux Hooks: A Before And After Comparison. Are They Better?

Collapse
 
flame10a profile image
Flame10A

I found out about these just yesterday, and I think the main use for them would be for using Redux within a custom hook. This means you can have shared Redux functionality without the need for exhaustive use of connect().

However, now that useReducer() is built-in to React, I'd be interested to see if it turns out to be a decent replacement for Redux. Especially in cases where shared state is needed in a large section of an app, but not entirely globally.