hackhub-ui
v0.1.5
Published
A lightweight JSX VDOM framework for HackHub mod development.
Readme
hackhub-ui
Lightweight JSX virtual-DOM framework for HackHub mod development. Hooks, class components, and an SDK wrapper that handles every known Content SDK pitfall internally.
Install
npm install -D github:Golden-Pigeon/hackhub-uiOr in package.json:
"devDependencies": { "hh-ui": "github:Golden-Pigeon/hackhub-ui" }Peer deps: @hotbunny/hackhub-content-sdk, esbuild, tsx, typescript.
Usage
// src/apps/MyApp/app.ts
import { h, render } from "hackhub-ui";
const App = () => <div>Hello HackHub</div>;
render(<App/>, document.getElementById("root")!);// esbuild.config.ts
import { buildMod } from "hackhub-ui/build";
buildMod();npx tsx esbuild.config.tsDocs
→ User guide — full API reference, project structure, pitfalls, deployment → AI agent reference — module map, internals, known bugs
License
MIT
