Skip to Content
React Hooks in Action
book

React Hooks in Action

by John Larsen
April 2021
Intermediate to advanced
376 pages
9h 53m
English
Manning Publications
Content preview from React Hooks in Action

13 Experimenting with useTransition, useDeferredValue, and SuspenseList

This chapter covers

  • Delaying UI updates with the useTransition hook
  • Flagging inconsistent state and UI with the isPending Boolean
  • Using old and new values simultaneously with the useDeferredValue hook
  • Managing multiple fallbacks with the SuspenseList component
  • Understanding the promise of Concurrent Mode

Concurrent Mode lets React work on multiple versions of our UI at once, showing older versions that are still fully interactive until newer versions are ready. This can mean that, for brief periods, the latest state doesn’t match the current UI in the browser and React gives us some hooks and components to manage the feedback we give to our users. The aim is to improve ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

React in Action

React in Action

Mark Thomas

Publisher Resources

ISBN: 9781617297632Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link