Hydration
Client-Side Hydration
The process of attaching JavaScript event handlers to server-rendered HTML, making a static page interactive in the browser.
Detalle técnico
Hydration is part of the web platform's core infrastructure. Modern browsers implement process through standardized Web APIs, ensuring consistent behavior across Chrome, Firefox, Safari, and Edge. The relevant specifications are maintained by the W3C, WHATWG, or IETF. Understanding the underlying protocol or mechanism helps developers use hydration correctly, avoid common pitfalls, and optimize for performance and security.
Ejemplo
```javascript
// Hydration: web API example
const response = await fetch('/api/resource');
const data = await response.json();
console.log(data);
```