Menu

JavaScript API Reference

Reactive Primitives

FunctionDescription
createSignalCreate a reactive signal
createEffectCreate a side effect
createMemoCreate a cached computed value
batchBatch multiple updates
untrackRun without tracking dependencies
onCleanupRegister cleanup in effect
onMountRun code when component mounts

Island Hydration

FunctionDescription
hydrateHydrate a standard island
hydrateWCHydrate a Web Component island

Control Flow Components

ComponentDescription
ShowConditional rendering
ForList rendering
Switch / MatchMulti-condition rendering

Sections