From 9e20548e01fdbb6fbb8de039e423536a995a5a2f Mon Sep 17 00:00:00 2001 From: Les Orchard Date: Wed, 22 Jan 2020 17:49:26 -0800 Subject: [PATCH] add createContext to preact standalone bundle fixes #145 --- 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 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 };