Skip to content

Commit 9e20548

Browse files
committed
add createContext to preact standalone bundle
fixes #145
1 parent 81d998d commit 9e20548

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/integrations/preact/standalone.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* limitations under the License.
1212
*/
1313

14-
import { h, Component, render as preactRender } from 'preact';
14+
import { h, Component, createContext, render as preactRender } from 'preact';
1515
import { useState, useReducer, useEffect, useLayoutEffect, useRef, useImperativeHandle, useMemo, useCallback, useContext, useDebugValue } from 'preact/hooks';
1616
import htm from '../../index.mjs';
1717

@@ -21,4 +21,4 @@ function render(tree, parent) {
2121

2222
const html = htm.bind(h);
2323

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

0 commit comments

Comments
 (0)