DEV Community

Discussion on: React State Management with Recoil

Collapse
cliffordfajardo profile image
Clifford Fajardo • Edited on

@kinga great intro/getting start with recoil!
Any opinions on react-query or other similar server state client libraries?

  • I know this is a small example starter example you've shared πŸ˜€, but I was just curious about your thoughts on storing server data (example API response data) in places in client state tools like react context, recoil VS server state libraries (react-query..) etc?

Interesting thread here on twitter (scroll up after the tweet loads to the question)

Collapse
kinga profile image
Kinga Hunyadi Author • Edited on

Thank you! I mostly used Redux for state management, as it was the most popular πŸ˜„. I want to give Recoil a chance in the future. But I did not use other libraries for state management. I used context only for things that should be shared between all (most) components, e.g. current theme, user. But I will definitely check those out, thanks for the suggestion. ☺️