diff --git a/src/integrations/preact/standalone.mjs b/src/integrations/preact/standalone.mjs index 01fbf80..f2604da 100644 --- a/src/integrations/preact/standalone.mjs +++ b/src/integrations/preact/standalone.mjs @@ -11,7 +11,7 @@ * limitations under the License. */ -import { h, Component, render as preactRender } from 'preact'; +import { h, Component, createContext, render as preactRender } from 'preact'; import { useState, useReducer, useEffect, useLayoutEffect, useRef, useImperativeHandle, useMemo, useCallback, useContext, useDebugValue } from 'preact/hooks'; import htm from '../../index.mjs'; @@ -21,4 +21,4 @@ function render(tree, parent) { const html = htm.bind(h); -export { h, html, render, Component, useState, useReducer, useEffect, useLayoutEffect, useRef, useImperativeHandle, useMemo, useCallback, useContext, useDebugValue }; +export { h, html, render, Component, createContext, useState, useReducer, useEffect, useLayoutEffect, useRef, useImperativeHandle, useMemo, useCallback, useContext, useDebugValue };