React Selective Hydration
Teaches selective hydration combined with streaming SSR in React 18+. Use when you need to prioritize hydrating interactive components while streaming the rest of the page.
Install
npx skills add PatternsDev/skills --skill react-selective-hydrationgit clone --depth 1 https://github.com/PatternsDev/skills.git /tmp/skills
mkdir -p ~/.claude/skills
cp -r /tmp/skills/react/react-selective-hydration ~/.claude/skills/react-selective-hydrationPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Selective Hydration In previous articles, we covered how SSR with hydration can improve user experience. React is able to (quickly) generate a tree on the server using the `renderToString` method that the `react-dom/server` library provides, which gets sent to the client after the entire tree has been generated. The rendered HTML is non interactive, until the JavaScript bundle has been fetched and loaded, after which React walks down the tree to hydrate and attaches the handlers. However, this approach can lead to some performance issues due to some limitations with the current implementation. ## When to Use - Use this when you want to make parts of your SSR page interactive before all JavaScript has loaded - This is helpful when slow components (e.g., data-fetching components) are blocking the entire page's hydration ## Instructions - Use `Suspense` boundaries to delineate independently hydratable chunks of UI - Use `renderToPipeableStream` (Node) or `renderToReadableStream` (edge) for streaming SSR - Place heavy data-fetching components inside `Suspense` so they don't delay sibling hydration - Ensure critical interactive components are not inside long-lived loading fallbacks - Use `hydrateRoot` (React 18+) to benefit from selective hydration ## Details
Details
- Skill name
react-selective-hydration- Repository
- PatternsDev/skills
- Path
react/react-selective-hydration/SKILL.md- Repo updated
- 15 April 2026
FAQ
What does the React Selective Hydration skill do?
Teaches selective hydration combined with streaming SSR in React 18+. Use when you need to prioritize hydrating interactive components while streaming the rest of the page.
How do I install the React Selective Hydration skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add PatternsDev/skills --skill react-selective-hydration. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is React Selective Hydration popular?
It lives in PatternsDev/skills, which has 259 GitHub stars and 28 forks.
Related skills
AI UI Patterns
259PatternsDev/skills
Teaches design patterns for building AI-powered React interfaces. Use when creating chatbots, intelligent assistants, streaming UIs, or any AI-driven user experience in React.
Async Components
259PatternsDev/skills
Teaches async component loading in Vue for performance optimization. Use when you have heavy components that aren't needed on initial render and can be loaded on demand.
Bundle Splitting
259PatternsDev/skills
Teaches bundle splitting techniques for web performance. Use when your application has a large JavaScript bundle that affects load times or when you need to reduce FCP/LCP.
React Server Components
259PatternsDev/skills
Teaches React Server Components for zero-bundle server rendering. Use when components only need server-side data access and don't require client-side interactivity like state or event handlers.
React Render Optimization
259PatternsDev/skills
Teaches React rendering performance optimization patterns. Use when reducing unnecessary re-renders, optimizing memoization, improving state design, or diagnosing React performance issues.
Render Functions
259PatternsDev/skills
Teaches Vue render functions and JSX for programmatic template creation. Use when templates are too limiting and you need the full power of JavaScript to construct component output dynamically.
Browse the most popular Claude skills, all frontend & design skills, or write your own with the skills generator.