React Hooks in Action
FreeBuild stylish, slick, and speedy-to-load user interfaces in React without writing custom classes.
FreeFree tier
About React Hooks in Action
React Hooks in Action teaches you to write fast and reusable React components using Hooks. The book covers pre-built hooks like useState, useReducer, and useEffect, and guides you in building custom hooks for reusable logic. It includes a resource booking application example, reduces boilerplate, and helps you become a more effective React developer. The book also covers Suspense and Concurrent Mode.
Key Features
Managing state with useState
Using useReducer for complex state management
Handling side effects with useEffect
Building custom hooks for reusable logic
Implementing a resource booking application
Covering Suspense and Concurrent Mode
Reducing boilerplate in functional components
Pros & Cons
Pros
- Requires less boilerplate than class components
- Teaches best practices for hooks with real-world examples
- Includes a complete resource booking application to apply concepts
- Covers modern React features like Suspense and Concurrent Mode
- Comes with online resources: source code, forum, and audio sample
Best For
Learning React Hooks for new and experienced React developersBuilding reusable component logic without class componentsManaging state and side effects in functional componentsCreating applications with concurrent rendering features
FAQ
What version of React does the book cover?
The book covers React Hooks with Suspense and Concurrent Mode, which are features from React 17 and 18.
Is there a source code repository for the examples?
Yes, the source code is available on GitHub and a book forum is provided for discussion.
Does the book include audio or video content?
Yes, an audio sample is available, and a video edition is offered. The book is also available in audio format with subscription.