Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
preact: include Fragment in standalone module
  • Loading branch information
neilpa authored Aug 26, 2023
commit 190f4cf76a49791cb8d6d209a3c755cc0305c7a2
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, createRef, render } from 'preact';
import { h, Component, Fragment, 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, createRef, useState, useReducer, useEffect, useLayoutEffect, useRef, useImperativeHandle, useMemo, useCallback, useContext, useDebugValue, useErrorBoundary };
export { h, html, render, Component, Fragment, createContext, createRef, useState, useReducer, useEffect, useLayoutEffect, useRef, useImperativeHandle, useMemo, useCallback, useContext, useDebugValue, useErrorBoundary };