A 5-minute path to your first reactive UI with ztools.
npm install @ztools.org/runtime
import { signal, computed, createTags, mount } from "@ztools.org/runtime";
const [div, p, button] = createTags("div", "p", "button");
function App() {
const count = signal(0);
const doubled = computed(() => count() * 2);
return div(
p("count: ", () => count(), " | doubled: ", () => doubled()),
button({ onClick: () => count.set(count() + 1) }, "Increment")
);
}
mount(App, document.getElementById("app"));
signal() stores reactive statecomputed() derives values from signals() => count()) re-render reactivelymount() renders your component into the DOMShow and For for conditional and list rendering