preact
preact copied to clipboard
Types: Unable to return `ComponentChild` from component
- [X] Check if updating to the latest Preact version resolves the issue
Describe the bug
To Reproduce
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.