What State Management tool do you use and recommend?
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.
@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.
Zustand is hands-down my favourite React state-management library. Even better if used with Immer, so to avoid complex reducers.
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.
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.
Please sign in to leave a comment.