React Hooks in Action
eBook - ePub

React Hooks in Action

With Suspense and Concurrent Mode

  1. 376 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

React Hooks in Action

With Suspense and Concurrent Mode

About this book

React Hooks in Action teaches you to write fast and reusable React components using Hooks. Summary
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. Table of Contents PART 11 React is evolving2 Managing component state with useState hook3 Managing component state with useReducer hook4 Working with side effects5 Managing component state with useRef hook6 Managing application state7 Managing performance with useMemo8 Managing state with the Context API9 Creating your own hooks10 Using third party hooksPART 211 Code splitting with Suspense12 Integrating data-fetching with Suspense13 Experimenting with useTransition, useDeferredValue and SuspenseList

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access React Hooks in Action by John Larsen in PDF and/or ePUB format, as well as other popular books in Computer Science & Web Programming. We have over one million books available in our catalogue for you to explore.

Information

Table of contents

  1. React Hooks in Action
  2. Copyright
  3. dedication
  4. contents
  5. front matter
  6. Part 1
  7. 1 React is evolving
  8. 2 Managing component state with the useState hook
  9. 3 Managing component state with the useReducer hook
  10. 4 Working with side effects
  11. 5 Managing component state with the useRef hook
  12. 6 Managing application state
  13. 7 Managing performance with useMemo
  14. 8 Managing state with the Context API
  15. 9 Creating your own hooks
  16. 10 Using third-party hooks
  17. Part 2
  18. 11 Code splitting with Suspense
  19. 12 Integrating data fetching with Suspense
  20. 13 Experimenting with useTransition, useDeferredValue, and SuspenseList
  21. index