From 8d76204646668498b3d59ea830bcaa0f0dd2a54f Mon Sep 17 00:00:00 2001 From: "Serge A. Zaitsev" Date: Mon, 28 Oct 2019 07:09:46 +0100 Subject: [PATCH] add preact hooks to the standalone bundle --- src/integrations/preact/standalone.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/integrations/preact/standalone.mjs b/src/integrations/preact/standalone.mjs index 4ed23d4..01fbf80 100644 --- a/src/integrations/preact/standalone.mjs +++ b/src/integrations/preact/standalone.mjs @@ -12,6 +12,7 @@ */ import { h, Component, render as preactRender } from 'preact'; +import { useState, useReducer, useEffect, useLayoutEffect, useRef, useImperativeHandle, useMemo, useCallback, useContext, useDebugValue } from 'preact/hooks'; import htm from '../../index.mjs'; function render(tree, parent) { @@ -20,4 +21,4 @@ function render(tree, parent) { const html = htm.bind(h); -export { h, html, render, Component }; +export { h, html, render, Component, useState, useReducer, useEffect, useLayoutEffect, useRef, useImperativeHandle, useMemo, useCallback, useContext, useDebugValue };