What State Management tool do you use and recommend?

I would love to hear about the state management tool you use and why you recommend it? I am currently doing some research on Zustand.
amarokaz

Depends on your use case and architecture, but I found react-query covers most of my server state needs and normal react context for app state

0 Likes
Daniel

i worked with redux-tookit, but i used it just for state management. the RTK query part wasn't for me. right now i use SWR (i am going to test react query also), but most probably i will move to zustand bc it looks way easier. and at the end of the day you have to choose which one you like.

0 Likes
Joshua Berrios 🇵🇷 Author

@amarokaz yeah that is what I am noticing too based on my research. I am actually going to be taking a course on react-query as a deep dive to see if it would truly benefit my application. I really need to focus on get state management on my application going prior to launching an MVP.

0 Likes

Zustand is hands-down my favourite React state-management library. Even better if used with Immer, so to avoid complex reducers.

0 Likes
Joshua Berrios 🇵🇷 Author

Thank you everyone for your responses. I am going to add React Query to my research process as well. But Zustand with Immer is looking very very promising so far.

0 Likes
Walter Jenkins

redux-toolkit is amazing. I hated redux because of all of the boilerplate, but RTK is so simple. They also just released RTK query which is a way to manage and cache requests, it is a direct comparison to React Query.

0 Likes
Daniel

react query dev tool is really nice

0 Likes

Please sign in to leave a comment.