From d56b77da01d9ff6ec7bcdc5387542e95ad3b6c0a Mon Sep 17 00:00:00 2001 From: Sijmen Date: Wed, 27 Apr 2022 22:44:10 +0200 Subject: [PATCH] Add createRef to standalone preact bundle --- src/integrations/preact/standalone.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/integrations/preact/standalone.mjs b/src/integrations/preact/standalone.mjs index e78dfb0..0ceb223 100644 --- a/src/integrations/preact/standalone.mjs +++ b/src/integrations/preact/standalone.mjs @@ -11,10 +11,10 @@ * limitations under the License. */ -import { h, Component, createContext, render } from 'preact'; +import { h, Component, createContext, createRef, render } from 'preact'; import { useState, useReducer, useEffect, useLayoutEffect, useRef, useImperativeHandle, useMemo, useCallback, useContext, useDebugValue, useErrorBoundary } from 'preact/hooks'; import htm from '../../index.mjs'; const html = htm.bind(h); -export { h, html, render, Component, createContext, useState, useReducer, useEffect, useLayoutEffect, useRef, useImperativeHandle, useMemo, useCallback, useContext, useDebugValue, useErrorBoundary }; +export { h, html, render, Component, createContext, createRef, useState, useReducer, useEffect, useLayoutEffect, useRef, useImperativeHandle, useMemo, useCallback, useContext, useDebugValue, useErrorBoundary };