Learn React Query
State management in React is a breeze with React Query.
This guide will help you master the core functionality of React Query: queries, mutations & query invalidation.
Table of contents
- What is React Query?
- Project Walkthrough
- Project set-up
- Creating a query client
- useQuery hook
- Signature of the useQuery hook
- React Query Devtools
- Refetch on window focus
- Creating a custom hook
- useMutation hook
- Signature of the useMutation hook
- Invalidating & refetching the query
- Error handling with the onError callback