Skip to content

Commit 8d76204

Browse files
committed
add preact hooks to the standalone bundle
1 parent c43d31d commit 8d76204

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/integrations/preact/standalone.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
*/
1313

1414
import { h, Component, render as preactRender } from 'preact';
15+
import { useState, useReducer, useEffect, useLayoutEffect, useRef, useImperativeHandle, useMemo, useCallback, useContext, useDebugValue } from 'preact/hooks';
1516
import htm from '../../index.mjs';
1617

1718
function render(tree, parent) {
@@ -20,4 +21,4 @@ function render(tree, parent) {
2021

2122
const html = htm.bind(h);
2223

23-
export { h, html, render, Component };
24+
export { h, html, render, Component, useState, useReducer, useEffect, useLayoutEffect, useRef, useImperativeHandle, useMemo, useCallback, useContext, useDebugValue };

0 commit comments

Comments
 (0)