0.0.2 • Published 5 years ago
@danprince/preact-app v0.0.2
A single module bundle containing preact
, preact/hooks
and htm/preact
.
import { html, render, useState } from "@danprince/preact-app";
let Counter = () => {
let [count, setCount] = useState(0);
let inc = () => setCount(count + 1);
return html`<button onClick=${inc}>${count}</button>`;
}