What's new in React
summary
New React features covered: the new Context API (createContext with Provider/Consumer and useContext support) to avoid prop drilling; Fragments to avoid extra DOM nodes; Error Boundaries catching render/lifecycle errors; the new refs API exposing element via .current. Portals let a mini React app render cart counts or modals into outside DOM. Suspense introduces createResource + cache and a Suspense placeholder with maxDuration (example: 3s fetch with 2s maxDuration shows a spinner for 1s). Hooks (useState, useEffect, custom hooks) replace many class patterns and work now.
AI-written summary · about
chapters (10)
- 0:00Introduction and speaker intro
- 1:02What's new in React overview
- 3:10React Context API explained
- 9:13React Fragments for cleaner JSX
- 11:18Error boundaries in React
- 14:07New refs API in React
- 17:38React Portals for DOM manipulation
- 22:35React Suspense for async data
- 34:40React Hooks deep dive
- 42:30Summary and Q&A
