React Hooks in Action you own this product

With Suspense and Concurrent Mode
John Larsen
  • March 2021
  • ISBN 9781617297632
  • 376 pages
  • printed in black & white
  • Available translations: Korean, Simplified Chinese

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


Look inside
Build stylish, slick, and speedy-to-load user interfaces in React without writing custom classes. React Hooks are a new category of functions that help you to manage state, lifecycle, and side effects within functional components. React Hooks in Action teaches you to use pre-built hooks like useState, useReducer and useEffect to build your own hooks. Your code will be more reusable, require less boilerplate, and you’ll instantly be a more effective React developer.

about the technology

Get started with React Hooks and you’ll soon have code that’s better organized and easier to maintain. React Hooks are targeted JavaScript functions that let you reuse and share functionality across components. Use them to split components into smaller functions, manage state and side effects, and access React features without classes—all without having to rearrange your component hierarchy.

about the book

React Hooks in Action teaches you to write fast and reusable React components using Hooks. You’ll start by learning to create component code with Hooks. Next, you’ll implement a resource booking application that demonstrates managing local state, application state, and side effects like fetching data. Code samples and illustrations make learning Hooks easy.

what's inside

  • Build function components that access React features
  • Manage local, shared, and application state
  • Explore built-in, custom, and third-party hooks
  • Load, update, and cache data with React Query
  • Improve page and data loading with code-splitting and React Suspense

about the reader

For beginning to intermediate React developers.

about the author

John Larsen has been a teacher and web developer for over 20 years, creating apps for education and helping students learn to code. He is the author of Get Programming with JavaScript.

Discover React Hooks, and the future of developing apps with React. A great book.

Arnaud Castelltort, University of Montpellier

This book covers everything that you need to know. A fantastic addition to your React arsenal.

Clive Harber, Distorted Thinking Ltd.

Level up your React knowledge and take advantage of the newer features and best practices.

Ryan Burrows, Remitly

An excellent introduction. Filled with knowledge nuggets and real-world use cases.

Edin Kapić, isolution

choose your plan

team

monthly
annual
$49.99
$399.99
only $33.33 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • React Hooks in Action ebook for free

choose your plan

team

monthly
annual
$49.99
$399.99
only $33.33 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • React Hooks in Action ebook for free

choose your plan

team

monthly
annual
$49.99
$399.99
only $33.33 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • React Hooks in Action ebook for free