solid-rendering

Render SolidJS applications on server and client with hydration strategies.

2|2|Updated May 1, 2026
One-click install
npx skills add https://github.com/adamhjk/mvtt --skill solid-rendering
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solid-rendering
Source: https://github.com/adamhjk/mvtt/tree/main/.claude/skills/solid-rendering
Command: npx skills add https://github.com/adamhjk/mvtt --skill solid-rendering

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

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.

Frequently Asked Questions about solid-rendering

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I hydrate a server-rendered SolidJS application on the client?

To hydrate a server-rendered SolidJS application on the client, use the `hydrate()` function to activate server-rendered markup and attach interactivity. This prevents hydration mismatches by correctly matching existing DOM elements.

What is the best way to stream HTML from a SolidJS server?

The best way to stream HTML from a SolidJS server is using the `renderToStream()` function. This enables server-side rendering to send HTML chunks progressively, improving initial page load performance and time-to-first-byte.

Does SolidJS support asynchronous server-side rendering?

Yes, SolidJS supports asynchronous server-side rendering through the `renderToStringAsync()` function. This allows the server to wait for asynchronous data resolution before generating the final static HTML string.

How do I prevent hydration mismatches in SolidJS?

To prevent hydration mismatches in SolidJS, use `<HydrationScript>` or `generateHydrationScript()` to serialize state correctly. These tools ensure the client accurately matches the server-rendered DOM structure during activation.

Can I write environment-aware code for SolidJS server and client rendering?

Yes, you can write environment-aware code for SolidJS server and client rendering using `isServer`, `isDev`, and `DEV` flags. These constants allow conditional execution of logic specific to server or client environments.

What is the difference between mounting and hydrating a SolidJS app?

Mounting a SolidJS app uses `render()` to attach the app to empty DOM elements, while hydrating uses `hydrate()` to activate existing server-rendered markup. Hydration preserves DOM structure to avoid full client re-rendering.