Signals,
all the way down.
Build applications with fine-grained reactivity while leveraging a robust type system with ReScript.
See some examples. Then try it yourself.
Have a quick look at how small applications written in Xote look. Then try it yourself in the playground.
All examples →1open Xote23@xote.component4let make = () => {5 let count = Signal.make(0)6 let doubled = Computed.make(() => Signal.get(count) * 2)78 <button onClick={_ => Signal.update(count, n => n + 1)}>9 {"Doubled: " ++ Int.toString(Signal.get(doubled))}10 </button>11}
Click it: only the button’s text changes.
Meet the triad. The core of everything in Xote.
Signals hold state, computed values derive from it, and effects carry changes out to the page. That’s everything you need before you build.
Read the guide →- 01 · Source
Signal
Holds a value and tells whoever reads it when it changes.
1let count = Signal.make(0) - 02 · Derived
Computed
Derives a value from other signals and keeps it current on its own.
1let doubled = Computed.make(() =>2 Signal.get(count) * 23) - 03 · Reaction
Effect
Runs whenever what it reads changes: update the page, save, log.
1Effect.run(() => {2 Console.log(Signal.get(doubled))3 None4})
Less to learn and hold. Less to break.
A small API on top of a sound type system: fewer concepts to hold in your head, and fewer surprises once it ships.
Fast by default
No virtual DOM. Updates touch only the nodes that changed.
Sound types
ReScript catches mistakes before they reach the browser.
Small surface
Sixteen modules you can keep in your head.
Full stack
Router, SSR and hydration when you need them.
Start with
one signal.
Install the package, add the JSX transform, and render your first component in a few minutes.