Skip to content

Commit fd9c10d

Browse files
authored
Fix render() in standalone build (fixes #159)
1 parent 86a7236 commit fd9c10d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/integrations/preact/standalone.mjs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,10 @@
1111
* limitations under the License.
1212
*/
1313

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

18-
function render(tree, parent) {
19-
preactRender(tree, parent, parent.firstElementChild);
20-
}
21-
2218
const html = htm.bind(h);
2319

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

0 commit comments

Comments
 (0)