DEV Community

Discussion on: My thoughts on endless battle of React state management libraries (setState/useState vs Redux vs Mobx)

Collapse
 
juliang profile image
Julian Garamendy

Thank you for writing this. I finally understand the core differences between Redux and MobX.

Regarding

I am imagining having a useSharedState hook, which would work just like a regular React state hook, but would allow components to access the same state instance, for example by sharing a predefined key

...have you seen ReactQuery or Vercel's SWR?

They're two very similar libraries. I think you'll like them.

I mention them in some of my posts.

Thanks again!