react-selective-hydration
OfficialHydrate interactive components while streaming.
Software Engineering#suspense#hydration#web-performance#server-side-rendering#react-18#streaming-ssr#selective-hydration
AuthorPatternsDev
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Server-rendered React pages often render a non-interactive shell until the full JavaScript bundle loads, delaying interactivity. Selective hydration enables hydrating only the critical interactive parts first while the rest of the page streams, improving perceived performance and time-to-interactive.
Core Features & Use Cases
- Enables streaming SSR with Suspense boundaries to hydrate critical components early.
- Utilizes renderToPipeableStream or renderToReadableStream and hydrateRoot to progressively hydrate UI as data becomes available.
- Applies to large pages where certain widgets must become interactive quickly while other sections render progressively for better user experience.
Quick Start
Start by integrating selective hydration in your React 18 SSR setup and ensure critical components are wrapped in Suspense boundaries.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: react-selective-hydration Download link: https://github.com/PatternsDev/skills/archive/main.zip#react-selective-hydration Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.