You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ! 😊
The text was updated successfully, but these errors were encountered:
rschristian
changed the title
Feature Request: Use the "render" function of react/compat
Feature Request: Use the "render" function of preact/compat
Mar 2, 2022
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
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 Reactrender
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 ! 😊
The text was updated successfully, but these errors were encountered: