feat(script/jsx): add support for React hooks

This commit is contained in:
Elian Doran
2025-12-20 20:29:03 +02:00
parent 4d7e5bc8f6
commit 44ca9f457c
4 changed files with 35 additions and 32 deletions

View File

@@ -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
});