State Management with React Query: Improve developer and user experience by mastering server state in React
Idioma: inglés
Editorial: Packt Publishing, 2023
- Tapa blanda
- Nuevo

Librería: GreatBookPricesUK, Woodford Green, Reino UnidoGreatBookPricesUK
Vendedor de AbeBooks desde 28 de enero de 2020
Condición: Nuevo
EUR 35,17
Cantidad disponible: Más de 20 disponibles
Añadir al carritoN° de ref. del artículo 45811686-n
- Título
- State Management with React Query: Improve developer and user experience by mastering server state in React
- Autor
- Daniel Afonso
- Editorial
- Packt Publishing
- Año de publicación
- 2023
- Estado
- New
- Encuadernación
- Encuadernación de tapa blanda
- Idioma
- inglés
- ISBN 10
- 1803231343
- ISBN 13
- 9781803231341
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?
“Sinopsis” puede pertenecer a otra edición de este título.
Acerca del autor
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.
“Acerca de” puede pertenecer a otra edición de este título.
GreatBookPricesUK
Woodford Green, Reino Unido
Vendedor de AbeBooks desde 28 de enero de 2020
Tarifas de envío de Reino Unido a Estados Unidos de America
| Artículo | De 10 a 27 días hábiles | De 10 a 30 días hábiles |
|---|---|---|
| Primer artículo | EUR 17,49 | EUR 17,49 |
Métodos de pago
Descripción de la tienda
Especialidad
TradeBooksInformación empresarial del vendedor
Far Corner Europe Limited
19-20 Bourne Court, 19-20 Bourne Court
Woodford Green, Reino Unido IG8 8HD
Condiciones de venta
Company Name: GreatBookPricesUK
Legal Entity: Far Corner Europe Limited
Address: 19-20 Bourne Court, Southend Road, Woodford Green Essex, UK IG8 8HD
Registration #: 10691061
Authorized representative: Danielle Hainsey
Derecho al desistimiento
Si es un consumidor, puede rescindir el contrato de acuerdo con lo siguiente. Por consumidor se entiende cualquier persona física que actúe con fines ajenos a su actividad comercial, empresarial, oficio o profesión.
Información sobre el derecho de desistimiento
Derecho legal de desistimiento
Tiene derecho a rescindir este contrato en un plazo de 14 días sin dar ningún motivo.
El periodo de desistimiento vencerá a los 14 días desde que usted, o un tercero que no sea el transportista e indicado por usted, adquiera la posesión física del último bien o del último lote o pieza.
Para ejercer el derecho de desistimiento, complete de forma electrónica y envíe una declaración clara en nuestro sitio web, desde "Mis compras" en "Mi cuenta". Le enviaremos sin demora un acuse de recibo de dicho desistimiento a través de un soporte duradero (por ejemplo, por correo electrónico).
Para cumplir con el plazo de desistimiento, basta con que envíe su comunicación relativa al ejercicio del derecho de desistimiento antes de que venza el periodo de desistimiento.
Efectos del desistimiento
Si rescinde este contrato, le reembolsaremos todos los pagos que hayamos recibido de usted, incluidos los gastos de envío (excepto los gastos adicionales que surjan si elige un tipo de envío que no sea el tipo de envío estándar más económico que ofrecemos).
Podemos hacer una deducción del reembolso por la pérdida de valor de cualquier bien suministrado, si la pérdida es el resultado de una manipulación innecesaria por su parte.
Efectuaremos el reembolso sin demoras indebidas y, a más tardar, 14 días después de que se nos informe de su decisión de rescindir este contrato.
Efectuaremos el reembolso utilizando el mismo medio de pago que utilizó para la transacción inicial, a menos que haya acordado expresamente lo contrario; en cualquier caso, no incurrirá en ningún cargo como resultado de dicho reembolso.
Podremos retener el reembolso hasta que hayamos recibido los bienes o hasta que nos haya presentado una prueba de que los ha devuelto, lo que ocurra primero.
Deberá devolver los bienes o entregarlos a GreatBookPricesUK, Castle Donington, Derby, United Kingdom, sin demoras indebidas y, en cualquier caso, en un plazo máximo de 14 días a partir del día en que nos comunique su desistimiento del presente contrato. El plazo se cumple si devuelve la mercancía antes de que venza el periodo de 14 días. Tendrá que asumir los gastos directos de devolución de los bienes. Usted solo es responsable de la disminución del valor de los bienes como resultado de una manipulación distinta a la necesaria para establecer la naturaleza, las características y el funcionamiento de los bienes.
Excepciones al derecho de desistimiento
El derecho de desistimiento no se aplica a lo siguiente:
- La entrega de periódicos, diarios o revistas, con la excepción de los contratos de suscripción; y
- El suministro de contenido digital que no se proporcione en un soporte tangible (por ejemplo, en un CD o DVD) si, al hacer el pedido, aceptó que podíamos empezar a entregarlo y que no podría desistir una vez iniciada la entrega.
Condiciones de envío
Our warehouses across the globe are fully operational without substantial delays. We are working hard and continue to overcome the daily challenges presented by COVID-19. There have been reports that delivery carriers are experiencing large delays resulting in longer than normal deliveries to customers. See USPS's website for further detail. We would like to apologize in advance if your item arrives later than the expected delivery due date.
Internal processing of your order will take about 1-2 business days. Please allow an additional 10-20 business days for Royal Mail delivery.