E-book details

Learn React Hooks. Unlock scalable state, performance, and clean code with Hooks, Context, Suspense, and Form Actions - Second Edition

Learn React Hooks. Unlock scalable state, performance, and clean code with Hooks, Context, Suspense, and Form Actions - Second Edition

Daniel Bugl, Georg Schelkshorn

Ebook
React Hooks allow you to easily encapsulate, reuse, and refactor logic with the same level of simplicity that components bring to user interface organization.
In this second edition, React expert and author of many popular React books, Daniel Bugl guides you through the full spectrum of React Hooks, and teaches you how to handle forms, routing, and data fetching in modern React development. This edition is fully updated to React 19, with a revamped structure, expanded real-world use cases, and coverage of all newly introduced Hooks.
Starting with the fundamentals, you'll gain a deep understanding of how Hooks work under the hood and how to apply Hooks patterns efficiently. The chapters guide you through using State, Reducer, and Effect Hooks to manage application state, side effects, and complex logic for building your first Hook-based app. You'll utilize Suspense and Context APIs for streamlined data fetching and state management, master Form Actions for handling submissions, and implement routing with Hooks. You’ll also create custom Hooks for advanced functionality and write tests for reliability. Finally, you’ll learn how to refactor an existing app with class components into modern Hooks architecture.
By the end of this React book, you'll be well-equipped to use React Hooks to modernize and optimize your React projects.
  • 1. Introducing React and React Hooks
  • 2. Using the State Hook
  • 3. Writing Your First Application with React Hooks
  • 4. Using the Reducer and Effect Hooks
  • 5. Implementing React Contexts
  • 6. Using Hooks and React Suspense for Data Fetching
  • 7. Using Hooks for Handling Forms
  • 8. Using Hooks for Routing
  • 9. Advanced Hooks Provided by React
  • 10. Using Community Hooks
  • 11. Rules of Hooks
  • 12. Building Your Own Hooks
  • 13. Migrating from React Class Components
  • Title: Learn React Hooks. Unlock scalable state, performance, and clean code with Hooks, Context, Suspense, and Form Actions - Second Edition
  • Author: Daniel Bugl, Georg Schelkshorn
  • Original title: Learn React Hooks. Unlock scalable state, performance, and clean code with Hooks, Context, Suspense, and Form Actions - Second Edition
  • ISBN: 9781836209164, 9781836209164
  • Date of issue: 2025-05-23
  • Format: Ebook
  • Item ID: e_4fzv
  • Publisher: Packt Publishing