Skip to content

Recipes

Each recipe links to a corresponding minimal example. The fastest path is to look at the example first, then confirm the details in Kumiki Specification.

State

What you want to doExample
Counter-like state and updates01-slot-and-reducer
Constrain a value's range or format02-nominal-type
Immutably update a record04-record-and-copy
Pure helper functions05-pure-fn

Collections

What you want to doExample
map / filter / render a list07-list
Add, get, remove on a Map08-map
Toggle with a Set09-set
Handle an optional value (maybe present)10-option
Represent success or failure22-result
Date-time and duration11-time-and-duration

UI

What you want to doExample
Lay out in rows, columns, or grids12-layout
Two-way binding with an input field13-text-input-bind
Dropdown14-select
Checkbox15-checkbox
Show conditionally16-conditional-ui
Theme switching17-theme

App Level

What you want to doExample
Routing, parameters, and 40418-routing
Fetch data over HTTP19-effect-http
Persist to localStorage20-effect-storage
Periodic execution (timer)21-timer
Work on startup or route transition23-lifecycle-route-enter

See Combinations in Real Apps