Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Use the "render" function of preact/compat #67

Open
xandermann opened this issue Jan 11, 2022 · 0 comments
Open

Feature Request: Use the "render" function of preact/compat #67

xandermann opened this issue Jan 11, 2022 · 0 comments

Comments

@xandermann
Copy link

Hi,

I see the library is using the preact render function to render the custom elements.

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 ! 😊

@rschristian 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant