Skip to content

Commit

Permalink
Merge pull request #134 from zserge/master
Browse files Browse the repository at this point in the history
add preact hooks to the standalone bundle
  • Loading branch information
jviide authored Dec 26, 2019
2 parents c7eb893 + 93124af commit 1ec0588
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/integrations/preact/standalone.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*/

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

function render(tree, parent) {
Expand All @@ -20,4 +21,4 @@ function render(tree, parent) {

const html = htm.bind(h);

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

0 comments on commit 1ec0588

Please sign in to comment.