Designing React Hooks the Right Way: Explore design techniques and solutions to debunk the myths about adopting states using React Hooks
Idioma: inglés
Editorial: Packt Publishing, 2022
- Tapa blanda
- Usado

Librería: Samuel S Lin, Etobicoke, ON, CanadaSamuel S Lin
Vendedor de IberLibro desde 3 de febrero de 2021
Condición: Usado - Muy bueno
EUR 27,59
Cantidad disponible: 1 disponible
Añadir al carritoDescripción del artículo del vendedor
260 pages. Slightly larger than a trade size. Square tight, clean and unmarked, a fine copy.
N° de ref. del artículo 2507062
- Título
- Designing React Hooks the Right Way: Explore design techniques and solutions to debunk the myths about adopting states using React Hooks
- Autor
- Fang Jin
- Editorial
- Packt Publishing
- Año de publicación
- 2022
- Estado
- Near Fine
- Encuadernación
- Soft cover
- Idioma
- inglés
- ISBN 10
- 1803235950
- ISBN 13
- 9781803235950
Get to grips with React Hooks and design your own custom Hook to manage application states for making better decisions in site architecture
Key Features
- Get to grips with Hooks' design and understand each built-in Hook's pitfalls with examples
- Discover how to turn your existing code into a reusable Hook via code refactoring
- Explore design solutions to identify and solve site performance issues involving Hooks
Book Description
React hook creates a unique solution for using states in function components to orchestrate UI communication. They provide you with an easy interface to write custom data management solutions with low development and maintenance costs. Understanding how Hooks are designed enables you to use them more effectively, and this book helps you to do just that.
This book starts with a custom-crafted solution to reveal why Hooks are needed in the first place. You will learn about the React engine and discover how each built-in Hook can manage a persistent value by hooking into it. You will walk through the design and implementation of each hook with code so that you gain a solid understanding. Finally, you'll get to grips with each Hook's pitfalls and find out how to effectively overcome them.
By the end of this React book, you'll have gained the confidence to build and write Hooks for developing functional and efficient web applications at scale.
What you will learn
- Create your own hooks to suit your state management requirement
- Detect the current window size of your website using useEffect
- Debounce an action to improve user interface (UI) performance using useMemo
- Establish a global site configuration using useContext
- Avoid hard-to-find application memory leaks using useRef
- Design a simple and effective API data layer using custom Hooks
Who this book is for
This book is for web developers who are looking for a consistent and efficient approach for applying application states with Hooks. Basic knowledge of React will help you to get the most out of this book.
Table of Contents
- Introducing the Function Component
- Crafting States in Functions
- Hooking into React
- Use State to Jumpstart Components
- Use Effect to Handle Side Effects
- Use Memo to Boost Performance
- Use Context to Cover an Area
- Use Ref to Hide Stuff
- Use Custom Hook to Reuse Logic
- Building a Website with React
“Sinopsis” puede pertenecer a otra edición de este título.
Acerca del autor
“Acerca de” puede pertenecer a otra edición de este título.
Samuel S Lin
Etobicoke, ON, Canada
Vendedor de IberLibro desde 3 de febrero de 2021
Tarifas de envío de Canada a Estados Unidos de America
| Artículo | De 7 a 13 días hábiles | De 3 a 6 días hábiles |
|---|---|---|
| Primer artículo | EUR 5,27 | EUR 17,77 |
Métodos de pago
Descripción de la tienda
We are an online (internet) bookstore based in Canada. We have no specific specialties but always maintain an inventory of wide range subjects of new, used and out of print books of merit. We grade our books carefully and objectively, never knowingly overstating the conditions to entice a sale, pack properly and ship promptly. We welcome your inquiry, please feel free to email us. IMPORTANT!!! For buyers who wish to pay by PayPal: We prefer credit cards payment to be processed by AbeBooks E-commerce. If you want to pay using PayPal, email us a request first and we will temporary open the other payment selections for you to do so and issue you a PayPal invoice following your order and our confirmation of order availability. Payment must be made before the order will be shipped. There is absolutely no chance that we will ship the order before payment is received. Prolong delay of payment will lead to cancellation of order.…
Especialidad
General fiction and non-fiction.Información empresarial del vendedor
Samuel S Lin
ON, Canada
Condiciones de venta
Book price and shipping cost are in US dollars. Click on " Destination, Rates & Speeds " to see more details. Credit Card payments are processed
by Abebooks E-Commerce. If you use PayPal, an invoice will be sent to you, please respond and make an online payment at your earliest convenience. Return/refund per Abebooks stated policy.
The following are details of your contact:
Name:
Samuel Lin
Address:
17 Habourview Cres
Etobicoke, ON M8V 4A6
CANADA
Telephone:
1-416-456-6411
Email:
samuelsllin@gmail.com
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 Samuel S Lin, Etobicoke, Ontario, Canada, 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
Shipping costs are based on books weighing 2.2 LB, or 1 KG. If your book order is heavy or oversized, we may contact you to let you know extra shipping is required. Occasionally we may request extra shipping charges for special handling, proof of delivery or insurance where necessary even though the weight is within the aforementioned set limit. You have every right to reject or accept the additional charges. If you reject the additional charges we will cancel the order for you; if you accept we will ship the order immediately.