Quick Start
HellaJS is unopinionated in terms of setup and architecture. All you need to do is install the core and dom packages in any project and have a mount element in your HTML.
npm install @hellajs/core @hellajs/dom
Then, somewhere in your HTML:
<div id="app"></div>
Now, somewhere in your project:
import { signal } from "@hellajs/core";import { mount } from "@hellajs/dom";
const App = () => { const count = signal(0);
return ( <button onclick={() => count(count() + 1)}>{count}</button> );};
mount(App, "#app");
You can now run your project and see the button that increments the count when clicked.
That’s all there is to it!