Riposte

Guide

Working with Riposte: the DSL, hooks, shared state, and routing.

Working with Riposte: the DSL, hooks, shared state, and routing.

Pages

  • Components & the DSL — A Riposte UI is an immutable tree of VNodes. You don’t build that tree by hand — you describe it with the DSL (element functions, attribute keys, event keys) and…
  • Hooks — Hooks give a component local state, side effects, memoized values, and access to the DOM. They’re available through a Hooks context that Riposte supplies while rendering — which is exactly…
  • State with Atoms — useState is enough for state owned by one component. When state needs to be shared across components that aren’t in a simple parent-child line — and you’d rather not thread…
  • Routing — riposte-router maps URLs to views for single-page apps. It’s built entirely on the core’s public API — useSyncExternalStore for the location, context for route params and the outlet, the DSL…
  • Component library (salle) — salle is a component library for Riposte — the styled, ready-made widgets layer that sits on top of the core’s elements and hooks. (The name is the fencing salle: the…

Search

Esc
to navigate to open Esc to close