0.0.2 • Published 5 years ago

@danprince/preact-app v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

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>`;
}
0.0.2

5 years ago

0.0.1

5 years ago

0.0.0

5 years ago