·hydration-safe-inputs
</>

hydration-safe-inputs

ethanniser/hydration-test

Fix React hydration issues where user input typed before hydration gets wiped/cleared when React takes over. Use when (1) users report input fields clearing on page load, (2) working with SSR/SSG React apps (Next.js, Remix, Astro) that have controlled inputs, (3) auditing forms for hydration safety, or (4) building new forms in statically rendered React apps.

9Installs·0Trend·@ethanniser

Installation

$npx skills add https://github.com/ethanniser/hydration-test --skill hydration-safe-inputs

SKILL.md

In SSR/SSG React apps, there's a window between when HTML renders and when React hydrates. If a user types into an input during this window, React's hydration will wipe their input because React initializes state to the default value (usually empty string).

Initialize state by reading the DOM element's current value instead of a hardcoded default:

Search for these patterns that indicate potential hydration wipe issues:

Fix React hydration issues where user input typed before hydration gets wiped/cleared when React takes over. Use when (1) users report input fields clearing on page load, (2) working with SSR/SSG React apps (Next.js, Remix, Astro) that have controlled inputs, (3) auditing forms for hydration safety, or (4) building new forms in statically rendered React apps. Source: ethanniser/hydration-test.

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/ethanniser/hydration-test --skill hydration-safe-inputs
Category
</>Dev Tools
Verified
First Seen
2026-02-04
Updated
2026-02-18

Quick answers

What is hydration-safe-inputs?

Fix React hydration issues where user input typed before hydration gets wiped/cleared when React takes over. Use when (1) users report input fields clearing on page load, (2) working with SSR/SSG React apps (Next.js, Remix, Astro) that have controlled inputs, (3) auditing forms for hydration safety, or (4) building new forms in statically rendered React apps. Source: ethanniser/hydration-test.

How do I install hydration-safe-inputs?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/ethanniser/hydration-test --skill hydration-safe-inputs Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

https://github.com/ethanniser/hydration-test

Details

Category
</>Dev Tools
Source
skills.sh
First Seen
2026-02-04

Related Skills

None