Skip to content

TSX rejects custom elements #4648

Closed
Closed
@jamiewinder

Description

@jamiewinder
return <my-custom-element />;

Results in error: Property 'my-custom-element' does not exist on type 'JSX.IntrinsicElements'. As far as I'm aware, this ought to be valid JSX and so compile to:

React.createElement("my-custom-element").

I can get around this by using the second form, but it'd be nice to avoid the check for standard elements (unless it's there for a good reason?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions