What problem does it solve?
Facilitates efficient and accurate rendering and hydration of SolidJS applications on the server and client sides to improve performance and user experience.
Core Features & Use Cases
- Client mounting with
render() to attach the app to DOM elements.
- Hydration using
hydrate() to activate server-rendered markup on the client.
- Server rendering options with
renderToString(), renderToStringAsync(), and renderToStream() for static and streaming HTML generation.
- Hydration management with
<HydrationScript> and generateHydrationScript() to serialize state for hydration.
- Support for environment-aware code execution with
isServer, isDev, and DEV.
- Prevents hydration mismatches by guiding state and content rendering.
Quick Start
Call render(() => <App />, element) to mount your app on the client, or use renderToString() for server-side HTML generation.