@solidjs/web
v2.0.4
Published
Solid's web runtime: client rendering, hydration, SSR, and DOM-specific control flow (Portal, Dynamic).
Readme
@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. In 1.x this package was the
solid-js/websubpath; in 2.0 it's a separate@solidjs/webpackage.See
solid-js's CHEATSHEET and MIGRATION guide for the 2.0 surface.
Entry points
// Browser / hydration
import { render, hydrate, Portal, Dynamic, dynamic } from "@solidjs/web";
// Server (SSR)
import { renderToString, 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.
