Why Riposte
Riposte is a frontend library for building user interfaces in Scala.js, inspired by React. Components are functions, state lives in hooks, and the UI is an immutable tree projected onto the DOM. The name is a fencing term — the counter-thrust after a parry. Diffing is the parry; patching the DOM is the riposte.
def Counter(using Hooks): VNode =
val (count, _, update) = useState(0)
button(onClick := (_ => update(_ + 1)), s"Count: $count")
What’s here
The sections split the docs into the usual layers: get up and running fast, understand the model — components, hooks, shared state, and routing — then look up the exact API surface when you need it.
- Getting Started — install Riposte and mount your first component.
- Guide — the DSL, hooks, atoms, and the router.
- Reference — the published modules and their APIs.