Skip to content

Types: Unable to return ComponentChild from component #4113

@rschristian

Description

@rschristian
  • Check if updating to the latest Preact version resolves the issue

Describe the bug

From Slack

To Reproduce

TS Playground Link

The React equivalent, using ReactNode, works just fine. TS Playground Link

I believe we need to change this line to return a ComponentChild as React does but this seems to break a whole bunch of our types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions