Skip to content

Element type comparing #304

@Mistereo

Description

@Mistereo

It seems like with react-hot-loader@3 it's not possible to check element type for imported components:

const element = <ImportedComponent />
console.log(element.type === ImportedComponent)

Logs false for me.
Is this a bug or something that should not be supported?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions