HellaJS
A reactive client-side framework for building web interfaces.
Quick Start
Section titled “Quick Start”Use whichever environment suits your needs.
import { signal } from "@hellajs/core";import { html, mount } from "@hellajs/dom";
// Ergonomic HTML proxiesconst { div, button, span } = html;
// Componentconst Counter = function () { // Reactive signals const count = signal(0); // Derived state const countClass = () => count() % 2 === 0 ? "even" : "odd";
// Modify state const setCount = (change) => { count.set(count() + change); };
// Functions make nodes reactive return div({ class: countClass }, button({ onclick: () => setCount(-1) }, "-"), span(count), button({ onclick: () => setCount(+1) }, "+"), );}
// Render to the DOM// Queries "#app" in your html if no selector is providedmount(Counter);