KS
Killer-Skills

solid-core-rendering — how to use solid-core-rendering how to use solid-core-rendering, solid-core-rendering setup guide, solid-core-rendering vs react, solid-core-rendering install, what is solid-core-rendering, solid-core-rendering alternative, solid-core-rendering client-side rendering, solid-core-rendering server-side rendering, solid-core-rendering streaming

v1.0.0
GitHub

About this Skill

Perfect for Frontend Agents needing advanced SolidJS rendering capabilities for Single-Page Applications. solid-core-rendering is a set of utilities for rendering SolidJS applications, providing client-side rendering, server-side rendering, hydration, and streaming capabilities.

Features

Mounts SolidJS apps to the DOM using the render function from solid-js/web
Supports client-side rendering for Single-Page Applications
Enables server-side rendering (SSR) for improved SEO and performance
Hydrates server-rendered markup for seamless client-side takeover
Streams rendering for efficient and dynamic content updates

# Core Topics

vallafederico vallafederico
[0]
[0]
Updated: 3/7/2026

Quality Score

Top 5%
36
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add vallafederico/solid-ai-rules/solid-core-rendering

Agent Capability Analysis

The solid-core-rendering MCP Server by vallafederico is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use solid-core-rendering, solid-core-rendering setup guide, solid-core-rendering vs react.

Ideal Agent Persona

Perfect for Frontend Agents needing advanced SolidJS rendering capabilities for Single-Page Applications.

Core Value

Empowers agents to perform client-side rendering, server-side rendering, hydration, and streaming using SolidJS, enabling seamless integration with protocols like HTTP and libraries such as solid-js/web.

Capabilities Granted for solid-core-rendering MCP Server

Rendering SolidJS applications on the client-side
Implementing server-side rendering for improved SEO
Hydrating server-rendered markup for dynamic updates

! Prerequisites & Limits

  • Requires SolidJS application setup
  • Limited to SolidJS framework
  • Element must be a function for rendering
Project
SKILL.md
5.2 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

SolidJS Rendering Utilities

Complete guide to rendering SolidJS applications. Understand client-side rendering, SSR, hydration, and streaming.

render - Client-Side Rendering

Mount your Solid app to the DOM. Essential browser entry point for SPAs.

tsx
1import { render } from "solid-js/web"; 2 3const dispose = render(() => <App />, document.getElementById("app")!); 4 5// Later, unmount 6dispose();

Key points:

  • First argument must be a function (not JSX directly)
  • Element should be empty (render appends, dispose removes all)
  • Returns dispose function to unmount

Correct usage:

tsx
1// ✅ Correct - function 2render(() => <App />, element); 3 4// ❌ Wrong - JSX directly 5render(<App />, element);

hydrate - SSR Hydration

Hydrate server-rendered HTML with client-side code. Essential for SSR apps.

tsx
1import { hydrate } from "solid-js/web"; 2 3const dispose = hydrate(() => <App />, document.getElementById("app")!);

Key points:

  • Rehydrates existing DOM
  • Matches server-rendered structure
  • Attaches interactivity
  • Used in SSR applications

Options:

tsx
1hydrate(() => <App />, element, { 2 renderId: "app", // Optional render ID 3 owner: undefined, // Optional owner context 4});

renderToString - Server Rendering

Render components to HTML string for SSR.

tsx
1import { renderToString } from "solid-js/web"; 2 3const html = renderToString(() => <App />); 4// Returns: "<div>...</div>"

Use cases:

  • SSR initial render
  • Static site generation
  • Email templates
  • Server-side HTML generation

renderToStringAsync - Async Rendering

Render components with async data to HTML string.

tsx
1import { renderToStringAsync } from "solid-js/web"; 2 3const html = await renderToStringAsync(() => <App />); 4// Waits for async resources

Use cases:

  • SSR with async data
  • Resources and Suspense
  • Async components

renderToStream - Streaming SSR

Stream HTML to client for faster time-to-first-byte.

tsx
1import { renderToStream } from "solid-js/web"; 2 3const stream = renderToStream(() => <App />); 4 5// Pipe to response 6stream.pipeTo(response);

Benefits:

  • Faster initial render
  • Progressive HTML delivery
  • Better perceived performance

HydrationScript / generateHydrationScript

Bootstrap hydration before Solid runtime loads.

tsx
1import { HydrationScript, generateHydrationScript } from "solid-js/web"; 2 3// As component (JSX) 4<HydrationScript nonce={nonce} eventNames={["click", "input"]} /> 5 6// As string (manual HTML) 7const script = generateHydrationScript({ 8 nonce, 9 eventNames: ["click", "input"], 10});

Purpose:

  • Sets up hydration on client
  • Required for SSR apps
  • Place once in <head> or before closing </body>

isServer - Environment Check

Check if code is running on server.

tsx
1import { isServer } from "solid-js/web"; 2 3if (isServer) { 4 // Server-only code 5 console.log("Running on server"); 6} else { 7 // Client-only code 8 console.log("Running on client"); 9}

Use cases:

  • Conditional server/client code
  • Environment-specific logic
  • Avoiding browser APIs on server

Common Patterns

Client Entry Point

tsx
1// entry-client.tsx 2import { render } from "solid-js/web"; 3import App from "./App"; 4 5render(() => <App />, document.getElementById("app")!);

SSR Entry Point

tsx
1// entry-server.tsx 2import { renderToString, generateHydrationScript } from "solid-js/web"; 3import App from "./App"; 4 5export default function handler(req, res) { 6 const html = renderToString(() => <App />); 7 8 res.send(` 9 <!DOCTYPE html> 10 <html> 11 <head> 12 ${generateHydrationScript()} 13 </head> 14 <body> 15 <div id="app">${html}</div> 16 </body> 17 </html> 18 `); 19}

Client Hydration

tsx
1// entry-client.tsx 2import { hydrate } from "solid-js/web"; 3import App from "./App"; 4 5hydrate(() => <App />, document.getElementById("app")!);

Streaming SSR

tsx
1import { renderToStream } from "solid-js/web"; 2 3export default async function handler(req, res) { 4 const stream = renderToStream(() => <App />); 5 6 res.setHeader("Content-Type", "text/html"); 7 stream.pipeTo(res); 8}

Environment-Specific Code

tsx
1import { isServer } from "solid-js/web"; 2 3function Component() { 4 if (isServer) { 5 // Server-only initialization 6 return <div>Server rendered</div>; 7 } 8 9 // Client-only code 10 const [mounted, setMounted] = createSignal(false); 11 onMount(() => setMounted(true)); 12 13 return <div>Client: {mounted()}</div>; 14}

Best Practices

  1. Always use function form:

    • render(() => <App />, element)
    • Not render(<App />, element)
  2. Empty mount element:

    • Element should be empty
    • Render appends, dispose removes all
  3. Hydration matching:

    • Server and client must match
    • Same structure and content
  4. Use isServer checks:

    • Avoid browser APIs on server
    • Conditional logic when needed
  5. Streaming for performance:

    • Use renderToStream for SSR
    • Faster time-to-first-byte

Summary

  • render: Client-side mounting
  • hydrate: SSR hydration
  • renderToString: Server HTML generation
  • renderToStringAsync: Async server rendering
  • renderToStream: Streaming SSR
  • HydrationScript / generateHydrationScript: Hydration setup
  • isServer: Environment detection

Related Skills

Looking for an alternative to solid-core-rendering or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication