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:
@@ -8,6 +8,7 @@ export default class Client extends EventTarget {
|
||||
ws = null;
|
||||
nick = null;
|
||||
params = {
|
||||
url: null,
|
||||
username: null,
|
||||
realname: null,
|
||||
nick: null,
|
||||
|
||||
5
lib/index.js
Normal file
5
lib/index.js
Normal 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);
|
||||
Reference in New Issue
Block a user