preact icon indicating copy to clipboard operation
preact copied to clipboard

Types: Unable to return `ComponentChild` from component

Open rschristian opened this issue 10 months ago • 4 comments

  • [X] 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.

rschristian avatar Aug 23 '23 01:08 rschristian