solid-core-rendering

Explain SolidJS rendering utilities including render, renderToString, renderToStream, and hydrate.

Updated Jan 4, 2026
One-click install
npx skills add https://github.com/vallafederico/solid-ai-rules --skill solid-core-rendering
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solid-core-rendering
Source: https://github.com/vallafederico/solid-ai-rules/tree/main/.claude/skills/solid-core-rendering
Command: npx skills add https://github.com/vallafederico/solid-ai-rules --skill solid-core-rendering

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive understanding of SolidJS's rendering capabilities, from client-side mounting and server-side rendering to advanced streaming and hydration techniques, enabling efficient and performant web application development.

Core Features & Use Cases

  • Client-Side Rendering: Mount SolidJS applications to the DOM using render.
  • Server-Side Rendering (SSR): Generate HTML strings with renderToString and handle async data with renderToStringAsync.
  • Streaming SSR: Improve Time-To-First-Byte with renderToStream.
  • Hydration: Rehydrate server-rendered HTML on the client using hydrate and HydrationScript.
  • Environment Detection: Differentiate server and client code with isServer.
  • Use Case: Implement a SolidStart application that efficiently renders on the server, hydrates on the client, and streams content for a fast user experience.

Quick Start

Use the solid-core-rendering skill to explain how to use the render function in SolidJS.

Frequently Asked Questions about solid-core-rendering

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

FAQPage Schema
How do I render a SolidJS application on the server?

SolidJS server-side rendering uses `renderToString` to generate static HTML strings, while `renderToStringAsync` handles asynchronous data fetching during SSR to produce fully populated HTML.

What is the difference between streaming SSR and hydration in SolidJS?

SolidJS streaming SSR uses `renderToStream` to send HTML chunks progressively for a faster Time-To-First-Byte, while hydration uses `hydrate` and `HydrationScript` to attach event listeners to that server-rendered HTML.

How can I check if my SolidJS code is running on the server or client?

SolidJS provides the `isServer` environment check to conditionally execute code, ensuring server-specific logic or client-side APIs only run in their intended environments.

Can I use SolidJS streaming to improve Time-To-First-Byte?

Yes, SolidJS streaming with `renderToStream` progressively flushes HTML to the browser, significantly improving Time-To-First-Byte compared to waiting for the entire render to complete.

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

SolidJS hydration uses the `hydrate` function alongside the `HydrationScript` component to efficiently attach interactivity to existing server-rendered HTML without a full client re-render.