Skip to content

types: Component cannot be rendered with JSX #3224

@KaelWD

Description

@KaelWD

Version

3.0.5

Reproduction link

https://codesandbox.io/s/boring-babbage-lgpd9?file=/src/main.tsx

Steps to reproduce

Try to compile declare const Foo: Component; return <Foo />

What is expected?

No errors. <Bar /> should complain about a missing id prop.

What is actually happening?

JSX element type 'Foo' does not have any construct or call signatures


This was broken with h(Foo) too until #3219

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions