Skip to content

Commit

Permalink
Merge pull request #222 from SijmenHuizenga/patch-1
Browse files Browse the repository at this point in the history
Add createRef to standalone preact bundle
  • Loading branch information
developit authored Jun 3, 2022
2 parents f5c8bec + d56b77d commit d62dcfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/integrations/preact/standalone.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 };

0 comments on commit d62dcfd

Please sign in to comment.