mirror of
https://github.com/zadam/trilium.git
synced 2025-12-22 16:20:08 +01:00
feat(script/jsx): add support for React hooks
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
import { Fragment, h } from "preact";
|
||||
import * as hooks from "preact/hooks";
|
||||
|
||||
export const preactAPI = Object.freeze({
|
||||
// Core
|
||||
h,
|
||||
Fragment
|
||||
Fragment,
|
||||
|
||||
...hooks
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user