ilokesto

SSR and browser APIs

Some utilinent components are pure render helpers. Others use effects or browser APIs.

APISSR note
Show, For, Repeat, SwitchPure rendering helpers for already available data.
MountUses effects to resolve function children after mount.
Observer, Slacker, useIntersectionObserverDepend on IntersectionObserver in the browser.
Slot, OptionalWrapperComposition helpers; safe when children are valid for the runtime.

In Next.js App Router, put browser/effect-based usage behind a Client Component boundary.

On this page