INTRO
Gradually Adopting Concurrent Features
Suspense in Data Frameworks
previous versions
- you can also use Suspense for code splitting on the client with
React.lazy
Vision
- declarative Suspense fallback can handle any asynchronous operation
- loading code, data, images, etc
What’s New in React 18
New Feature: Automatic Batching
- multiple state updates into a single re-render for better performance
- out-of-the-box performance improvement
- removing manually batch updates
previous
- only batched updates inside React event handlers
- Updates inside of
promises
, setTimeout
, native event handlers
, or any other event were not batched in React by default