@solidjs/web

@solidjs/web is the renderer. It turns the component tree that solid-js describes into DOM in the browser and into HTML on the server, and it hosts the server-side runtime for server functions and request handling.

The package has a browser build and a server build. Bundlers pick the right one from the export map, so the same import works in both places:

import { render, hydrate, isServer } from "@solidjs/web";

Rendering and SSR

Rendering and SSR explains the three rendering paths and hydration.



Components

  • Portal renders children elsewhere in the document.
  • dynamic creates a component from a reactive source.

JSX properties

Attributes with renderer-specific behavior: ref, class, style, textContent, and innerHTML.


Server functions

The runtime behind "use server": declarations such as GET and live, per-call invoke options, and the host integration hooks. The Server functions index groups them; the Server functions guide covers application patterns.


Request and response

Working with the request on the server: getRequestEvent, the response helpers respond, redirect, and reload, cookies, safe errors, and getTraceContext for the request's W3C trace. The Request and response index lists them all.


Performance tracks

enablePerformanceTracks from @solidjs/web/performance-tracks paints the attribution engine's records and the runtime's server-function calls as tracks in the Chrome Performance panel; Performance shows how to read them.

Last updated: 9/30/26, 8:28 PMEdit this pageReport an issue with this page