@solidjs/web
Solid 2.0's web platform runtime — DOM rendering, hydration, server-side rendering, and the web-only control-flow components (Portal, Dynamic).
Solid 2.0 (experimental beta). In 1.x this package was the solid-js/web subpath; in 2.0 it's a separate @solidjs/web package.
See solid-js's CHEATSHEET and MIGRATION guide for the 2.0 surface.
Entry points
import { render, hydrate, Portal, Dynamic, dynamic } from "@solidjs/web";
import {
renderToString,
renderToStringAsync,
renderToStream,
isServer
} from "@solidjs/web";
The control-flow components from solid-js (For, Show, Switch/Match, Loading, Errored, Repeat, Reveal) are also re-exported from @solidjs/web for convenience.
More