Grasp the core concepts of React Hooks and enhance your development workflow with best practices and advanced patterns derived from modern React 19 featuresKey Features: - Build custom Hooks to simplify complex logic and promote code reusability- Transform class components into modern, hook-based function components, and write robust tests- Build maintainable, production-ready UIs using React 19's declarative approach and ecosystem tools- Purchase of the print or Kindle book includes a free PDF eBookBook Description: 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.
Author(s): Daniel Bugl
372 Pages
Computers, Internet
Description
About the Book
This ultimate guide to Hooks shows you how to manage state, handle form submissions, fetch data using Suspense, and build reusable custom Hooks.
Book Synopsis
Grasp the core concepts of React Hooks and enhance your development workflow with best practices and advanced patterns derived from modern React 19 features
Key Features:
- Build custom Hooks to simplify complex logic and promote code reusability
- Transform class components into modern, hook-based function components, and write robust tests
- Build maintainable, production-ready UIs using React 19's declarative approach and ecosystem tools
- Purchase of the print or Kindle book includes a free PDF eBook
Book Description:
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.
What You Will Learn:
- Master and apply new React 19 Hooks, such as useActionState, useFormStatus, useOptimistic, and others
- Use React Hooks and Context to manage state in your web applications
- Efficiently fetch, update, and cache data using TanStack Query and Suspense
- Manage user input and form submission using Form Actions with Hooks
- Discover how to implement routing in your apps using React Router and Hooks
- Create and test your own Hooks to encapsulate, reuse, and refactor logic in your apps
Who this book is for:
This book is ideal for React developers looking to modernize their applications using React Hooks, Context, and Suspense. Beginners and experienced developers alike will gain a solid understanding of Hooks and their internal workings. If you're familiar with React and JavaScript, this book will help you upskill by teaching you best practices, performance optimization, and scalable application building. No prior experience with Hooks is required-this book covers everything from fundamentals to advanced patterns.
Table of Contents
- Introducing React and React Hooks
- Using the State Hook
- Writing Your First Application with React Hooks
- Using the Reducer and Effect Hooks
- Implementing React Contexts
- Using Hooks and React Suspense for Data Fetching
- Using Hooks for Handling Forms
- Using Hooks for Routing
- Advanced Hooks Provided by React
- Using Community Hooks
- Rules of Hooks
- Building Your Own Hooks
- Migrating from React Class Components
Dimensions (Overall): 9.25 Inches (H) x 7.5 Inches (W) x .77 Inches (D)
Weight: 1.41 Pounds
Suggested Age: 22 Years and Up
Number of Pages: 372
Genre: Computers
Sub-Genre: Internet
Publisher: Packt Publishing
Theme: Web Services & APIs
Edition: 2nd Edition
Format: Paperback
Author: Daniel Bugl
Language: English
Street Date: May 23, 2025
TCIN: 1013624125
UPC: 9781836209171
Item Number (DPCI): 247-63-5926
Origin: Made in the USA or Imported
If the item details aren’t accurate or complete, we want to know about it.
Shipping details
Estimated ship dimensions: 0.77 inches length x 7.5 inches width x 9.25 inches height
Estimated ship weight: 1.41 pounds
We regret that this item cannot be shipped to PO Boxes.
This item cannot be shipped to the following locations: American Samoa (see also separate entry under AS), Guam (see also separate entry under GU), Northern Mariana Islands, Puerto Rico (see also separate entry under PR), United States Minor Outlying Islands, Virgin Islands, U.S., APO/FPO, Alaska, Hawaii
Return details
This item can be returned to any Target store or Target.com.
This item must be returned within 90 days of the date it was purchased in store, delivered to the guest, delivered by a Shipt shopper, or picked up by the guest.