Designing React Hooks the Right Way
eBook - ePub

Designing React Hooks the Right Way

Fang Jin, Sagar Kale

  1. 278 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

Designing React Hooks the Right Way

Fang Jin, Sagar Kale

Detalles del libro
Índice
Citas

Información del libro

Get to grips with React Hooks and design your own custom Hook to manage application states for making better decisions in site architectureKey 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 HooksBook DescriptionReact 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 HooksWho this book is forThis 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.

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es Designing React Hooks the Right Way un PDF/ePUB en línea?
Sí, puedes acceder a Designing React Hooks the Right Way de Fang Jin, Sagar Kale en formato PDF o ePUB, así como a otros libros populares de Diseño y Diseño UI/UX. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
2022
ISBN
9781803237527
Edición
1
Categoría
Diseño
Categoría
Diseño UI/UX

Índice

    Estilos de citas para Designing React Hooks the Right Way

    APA 6 Citation

    Jin, F., & Kale, S. (2022). Designing React Hooks the Right Way (1st ed.). Packt Publishing. Retrieved from https://www.perlego.com/book/3202565 (Original work published 2022)

    Chicago Citation

    Jin, Fang, and Sagar Kale. (2022) 2022. Designing React Hooks the Right Way. 1st ed. Packt Publishing. https://www.perlego.com/book/3202565.

    Harvard Citation

    Jin, F. and Kale, S. (2022) Designing React Hooks the Right Way. 1st edn. Packt Publishing. Available at: https://www.perlego.com/book/3202565 (Accessed: 8 July 2024).

    MLA 7 Citation

    Jin, Fang, and Sagar Kale. Designing React Hooks the Right Way. 1st ed. Packt Publishing, 2022. Web. 8 July 2024.