In this tutorial I will go through some of reactquery features and explain you how you can share query data across different components.
I will show you how how to use useQuery and useMutation hooks.
You can also check how to handle global state with zustand in this video:
• Zustand React State Management Si...
git repo: https://github.com/codepanion/reactq...
Timestamps:
0:00 Intro
0:46 Install reactquery
1:48 Store data with useQuery
15:17 Update data with useMutation
24:38 Optimistic update