JavaScript API Reference
Reactive Primitives
| Function | Description |
|---|---|
createSignal | Create a reactive signal |
createEffect | Create a side effect |
createMemo | Create a cached computed value |
batch | Batch multiple updates |
untrack | Run without tracking dependencies |
onCleanup | Register cleanup in effect |
onMount | Run code when component mounts |
Island Hydration
| Function | Description |
|---|---|
hydrate | Hydrate a standard island |
hydrateWC | Hydrate a Web Component island |
Control Flow Components
| Component | Description |
|---|---|
Show | Conditional rendering |
For | List rendering |
| Switch / Match | Multi-condition rendering |