Switch to react

Under the hood, preact is used to reduce dependency size. We still don't
have a build stage, so htm is used instead of JSX.
This commit is contained in:
Simon Ser 2020-06-18 14:23:08 +02:00
parent 62300746d3
commit b449ace4b4
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
11 changed files with 734 additions and 538 deletions

5
lib/index.js Normal file
View file

@ -0,0 +1,5 @@
export * from "/node_modules/preact/dist/preact.module.js";
import { h } from "/node_modules/preact/dist/preact.module.js";
import htm from "/node_modules/htm/dist/htm.module.js";
export const html = htm.bind(h);