-
Notifications
You must be signed in to change notification settings - Fork 53
Closed
Description
Hi,
I see the library is using the preact render
function to render the custom elements.
preact-custom-element/src/index.js
Lines 1 to 2 in 5790765
import { h, cloneElement, render, hydrate } from 'preact'; | |
But as mentionned in the preact doc here https://preactjs.com/guide/v10/upgrade-guide#render-always-diffs-existing-children , the render
function of preact has a different behavior than the React render
method.
On my side, I'd like to use the import { render } from "preact/compat";
render function instead of the default one.
Do you think it would be nice if we add a choice about which render
function to use ? It would be great !
Thank you ! π
Metadata
Metadata
Assignees
Labels
No labels