@usezinq/core
v0.1.8
Published
ZINQ Is Not jQuery.
Readme
ZINQ - ZINQ Is Not jQuery
a library to do stuff that jquery could do, and much more
example:
import { $, signal } from "@usezinq/core";
$(() => {
$("#app")?.html(`
<span id="count"></span>
<button id="increase">increase count</button>
<button id="decrease">decrease count</button>
`);
const count = signal(0);
$("#increase")?.on("click", () => count.set(count.get() + 1));
$("#decrease")?.on("click", () => count.set(count.get() - 1));
count.subscribe((val) => $("#count")?.text(val.toString()));
});