React Query has become the go-to solution for server state management in React apps, and for good reason! This smart, comprehensive solution makes it easy to keep your app up-to-date with data on the server. In fact, if you are using Redux simply to manage data from the server, React Query can replace Redux in your app. Moreover, for server data management, React Query is much simpler and more powerful than Redux.
Benefits of Using React Query
For example, React Query:
- Tracks loading and error states for your server queries (no need to manage that yourself!)
- Makes cached server data available for display while you're fetching updated data
Course Overview
This course starts with a simple app to learn the basics of React Query:
- Queries
- Loading and error states
- React Query dev tools
- Pagination and pre-fetching
- Mutations
Exploration with the Star Wars API
We take a detour with the Star Wars API to learn about Infinite Queries - getting more data just as the user nears the end of the current data.
Advanced Features in a Multi-Component App
Finally, we work on a large, multi-component app to delve deeper into these concepts, plus:
- Centralizing loading and error handling
- Filtering data
- Integrating React Query with authentication
- Keeping data up-to-date after mutations, including optimistic updates
- Testing React Query
Additional Course Features
- Pre-written projects for React Query practice, minimizing time spent on irrelevant code
- Ample opportunities to practice through periodic "code quizzes" to solidify your understanding
- Visual models for complex concepts to aid comprehension of all the moving pieces
- The major project is written in TypeScript
- A supportive instructor who engages with students in Q&A
Come see what the hype is about, and improve your apps with simpler, more effective server state management!