What’s new in React 18

About a month ago React 18 got announced, with these new features:

  1. Automatic batching — React will now better batch state updates no matter what the context. If you do want to force an update, wrap your state change inside ReactDOM.flushSync()
  2. Transitions — A new hook named useTransition() to tell your app which updates are urgent and which are not. Dmitri Pavlutin has more details on this for you to read.
  3. New Suspense SSR Architecture — Streaming HTML & Selective Hydration which improve the TTI.

In the video above, Arnaud carefully lays out what all these features are and how to use them.

About the author

Bramus is a Freelance Web Developer from Belgium. From the moment he discovered view-source at the age of 14 (way back in 1997), he fell in love with the web and has been tinkering with it ever since (more …)

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.