Skip to content

dom-to-react.d.ts should reference JSX.Element instead of React.ReactElement #145

Closed
@yunyu

Description

@yunyu

Although this library can be used with Preact/Inferno/etc, the typings make it hard to do so as they rely explicitly on React types. Instead, JSX.Element should be used as it's more compatible across libraries.

I'd PR this, but I'm uncertain as to how dependent the library is on React internals.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions