40 live examples
Examples
Small, complete apps. Every one below is running right now: click around, then read the source or open it in the playground to change it.
A grouped shopping list kept in one store(): mutate nested items directly, bind inputs to them, snapshot it.
Keyed lists, two-way binding, a child component and persistence to localStorage.
An FAQ that opens one panel at a time, or several, animated with CSS grid rows.
Number and range inputs bound to states, with totals derived from them.
A character limit ring, hashtags and a feed, all derived from one textarea.
Reorder rows by dragging or with the keyboard; keyed rows move and keep their DOM.
One source of truth, with a validated state and values derived from it.
A drawing grid with undo and redo, built on the history option of a state.
Field errors, a password strength meter and touched state, all as derived values.
Quantities, a promo code and free-shipping threshold, persisted across reloads.
A settings form that knows which fields differ from what was saved, compared by value.
The same pointer position written to three states, to see how each option paces writes.
A multi-step form with per-step validation, a progress bar and a summary.
The board is one state; the winner, the turn and time travel all come from it.
requestAnimationFrame-driven timing with laps, cleaned up on destroy.
An analog clock: SVG markup with reactive attributes, ticking from an interval.
Provide a state once and read it anywhere below, without passing props down.
A reusable component with default props, a callback and half-star display.
A multi-select combobox with keyboard navigation and an element ref for focus.
Load the next page when a sentinel scrolls into view, with an IntersectionObserver.
Conway’s cellular automaton, with a timer that restarts when the speed changes.
Flip cards to find pairs, with a move counter, a timer and a persisted best score.
Switch between components with <Dynamic>; each tab mounts and unmounts.
An async derived inside <Loading>: refetches when its inputs change, keeps the old card while refreshing.
Likes show at once and save in the background with the save option; a failed save rolls back and reports to an error boundary.
100 000 rows that scroll smoothly: <Virtual> only renders the rows in view, with filtering and jump-to-row.
A reactive tab title and meta description from inside a component, restored when it unmounts.
Reusable DOM behaviors with use: — a reactive tooltip, click-outside, autosize, autofocus and an in-view observer.
Catch an error thrown while rendering, show a fallback, and reset.
A dialog rendered into <body> with a portal, with enter and leave transitions.
Cards that keep their state (notes, running timers) as they move between columns.
A component fetched on first render, preloaded on hover, with retry after a failed load.
A player that moves between layouts and keeps playing, created once with reparentable().
Utility classes in markup, with class arrays for conditional styles.
States written into CSS custom properties, with every color derived in scoped CSS.
Stat cards and a bar chart with hover details, styled with Tailwind utilities.
Have an idea?
Build it in the browser.
Start from any example above, or from a blank file. No install, no setup.