TypeScript type for children is missing a render function
thitemple opened this issue · 1 comments
thitemple commented
Hi this is adding a type for TChildren that allows components with children with render functions, without this, we have a TS error for the following:
function Component() {
return (
<SomeOtherComponent>
{(props) => (<div>{props.something}</div>)}
</SomeOtherComponent>
)
}
I have sent a PR for this already, it's just missing one line
AlexGilleran commented
Resolved in #106