Skip to content

Getting Started

Terminal window
npm install @rimitive/core @rimitive/signals

Create a counter with reactive state and DOM rendering. Start by installing the deps:

Terminal window
npm install @rimitive/core @rimitive/signals @rimitive/view

Then, create the app:

Loading sandbox...

That’s it! Click the button, the count updates, the DOM updates automatically.

  1. compose() wires modules together into a service
  2. signal() creates reactive state — read with count(), write with count(newValue)
  3. computed() derives values that update when dependencies change
  4. el() creates DOM elements with reactive children and props
  5. mount() attaches the element tree to the DOM