State Management with React Query: Improve developer and user experience by mastering server state in React
Language: English
Published by Packt Publishing, 2023
- Softcover
- Used

Seller: ThriftBooks-Dallas, Dallas, TX, U.S.A.ThriftBooks-Dallas
AbeBooks seller since July 2, 2009
Condition: Used - Very good
US$ 25.90
Quantity: 1 available
Add to basketItem description from seller
May have limited writing in cover pages. Pages are unmarked. ~ ThriftBooks: Read More, Spend Less.
Seller Inventory # G1803231343I4N00
- Title
- State Management with React Query: Improve developer and user experience by mastering server state in React
- Author
- Afonso, Daniel
- Publisher
- Packt Publishing
- Publication year
- 2023
- Condition
- Very Good
- Dust jacket
- No Jacket
- Binding
- Paperback
- Language
- English
- ISBN 10
- 1803231343
- ISBN 13
- 9781803231341
- Item weight
- 0.88 pounds
Beat common challenges in data fetching and data mutations while learning one of the most popular libraries for managing server state in React
Purchase of the print or Kindle book includes a free PDF eBook
Key Features
- Learn how state is split into server and client state and the common challenges with each
- Understand how React Query addresses server state challenges by facilitating data fetching and mutations
- Apply the knowledge gained to improve developer experience and build applications with improved UX
Book Description
State management, a crucial aspect of the React ecosystem, has gained significant attention in recent times. While React offers various libraries and tools to handle state, each with different approaches and perspectives, one thing is clear: state management solutions for handling client state are not optimized for dealing with server state. React Query was created to address this issue of managing your server state, and this guide will equip you with the knowledge and skills needed to effectively use React Query for state management.
Starting with a brief history of state management in the React ecosystem, you'll find out what prompted the split from a global state to client and server state and thus understand the need for React Query. As you progress through the chapters, you'll see how React Query enables you to perform server state tasks such as fetching, caching, updating, and synchronizing your data with the server. But that's not all; once you've mastered React Query, you'll be able to apply this knowledge to handle server state with server-side rendering frameworks as well. You'll also work with patterns to test your code by leveraging the testing library and Mock Service Worker.
By the end of this book, you'll have gained a new perspective of state and be able to leverage React Query to overcome the obstacles associated with server state.
What you will learn
- Get to grips with state and how it's typically managed
- Install and configure React Query and its Devtools
- Manage server state data fetching with the useQuery hook
- Create, update, and delete data using the useMutation hook
- Employ React Query in combination with frameworks such as Next.js and Remix
- Explore MSW and the testing library to test React Query using components and hooks
Who this book is for
The book is for React developers who want to improve their state management skills and overcome the hurdles brought about by server state while improving their developer and user experience. Basic knowledge of web development and React will assist with understanding key concepts covered in this book. JavaScript developers will also find it useful.
Table of Contents
- What Is State and How Do We Manage It?
- Server State versus Client State
- React Query - Introducing, Installing, and Configuring it
- Fetching Data with React Query
- More Data-Fetching Challenges
- Performing Data Mutations with React Query
- Server-Side Rendering with Next.js or Remix
- Testing React Query Hooks and Components
- What Changes in React Query v5?
"Synopsis" may belong to another edition of this title.
About the Author
Daniel Afonso is a Developer Advocate with a full-stack background, having worked with different languages and frameworks on various projects from IoT to Fraud Detection. He is passionate about learning and teaching and has spoken at multiple conferences related to React, JavaScript, and testing. In his free time, when he's not learning new technologies or writing about them, he's probably reading comics or watching superhero movies and shows.
"About the title" may belong to another edition of this title.
ThriftBooks-Dallas
Dallas, TX, U.S.A.
AbeBooks seller since July 2, 2009
Shipping rates within U.S.A.
| Item | 4 to 8 business days | 4 to 8 business days |
|---|---|---|
| First item | US$ 0.00 | US$ 0.00 |
Payment methods
Store description
ThriftBooks is a fully independent seller of used books, having sold more than 160 million used and new books since we started in 2003. Each quality used book is sorted, graded, shelved and shipped by hand by our team of dedicated employees in our seven warehouses across the US. We have the best selection of books, in the right condition and format, at everyday low prices. We also have a dedicated, US-based Customer Service team, ranked in the top three by Newsweek for Best Customer Service in 2018 and 2019, so you can shop with confidence. We support and invest in our employees, appreciate and value our customers, and truly believe in the power of the written word to educate, energize, and engage readers of all ages and interests.…
Seller's business information
Thrift Books Global LLC
18300 Cascade Ave S
Seattle, WA U.S.A. 98188
Terms of sale
We guarantee each book that we send you. If you have any problems, please contact
our dedicated customer service department. They will do everything possible to
ensure you are happy with your order.
Shipping terms
All domestic Standard shipments are distributed from our warehouses by OSM, then handed off to the USPS for final delivery.
2-Day Shipping is delivered by FedEx, which does not deliver to PO boxes.
International shipments are tendered to the local postal service in the destination country for final delivery – We do not use courier services for international deliveries.