JSPM

  • Created
  • Published
  • Downloads 10108
  • Score
    100M100P100Q114873F
  • License MIT

Solid's web runtime: client rendering, hydration, SSR, and DOM-specific control flow (Portal, Dynamic).

Package Exports

  • @solidjs/web
  • @solidjs/web/jsx-dev-runtime
  • @solidjs/web/jsx-runtime
  • @solidjs/web/storage
  • @solidjs/web/types/client.d.ts
  • @solidjs/web/types/core.d.ts
  • @solidjs/web/types/index.d.ts
  • @solidjs/web/types/jsx-properties.d.ts
  • @solidjs/web/types/jsx.d.ts
  • @solidjs/web/types/server-mock.d.ts
  • @solidjs/web/types/server.d.ts

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 (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

// Browser / hydration
import { render, hydrate, Portal, Dynamic, dynamic } from "@solidjs/web";

// Server (SSR)
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