structyl

No SSR

stable

Defers rendering until after mount.

Basic usage

Rendering on server…

Examples

Browser-only value

Show content that relies on browser APIs — safe on the server, accurate on the client.

Rendering on server…

Deferred with one frame

Pass defer to delay one animation frame after mount, smoothing flash for slow renders.

Loading…

fallback and defer

fallback shows during SSR; defer waits one animation frame after mount.

Server fallback

Features

  • SSR-safe fallback.
  • Client-only children.

Installation

bash
pnpm dlx structyl add no-ssr

API Reference

NoSsr

Client-only renderer.

PropTypeDefault
fallbackReact.ReactNode

Rendered until mounted.

null
deferboolean

Wait one animation frame before rendering children.

false
No SSR | structyl