Skip to content

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

@xandermann

Description

@xandermann

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions