React 18: New features and updates
summary
React 18 requires one concrete code change — swap to react-dom.createRoot/hydrateRoot — and then enables features like automatic batching across promises (opt out with flushSync), concurrency primitives (startTransition and useTransition), Suspense improvements with HTML streaming and selective hydration, and a new useId hook for consistent server/client IDs. It drops IE11 support. Upgrading is npm install then switch root API; without the API change new features stay off but the app still runs with a warning.
AI-written summary · about
chapters (12)
- 0:00Introduction to React 18
- 1:03React 18 major version overview
- 2:32New root API changes
- 6:05Automatic batching explained
- 9:39Strict mode updates
- 11:02Concurrent mode introduction
- 13:11Transitions for state updates
- 19:08Suspense and SSR improvements
- 25:26UseId hook for consistency
- 27:11Summary and resources
- 28:16How to upgrade to React 18
- 29:00Q&A
