AlexGilleran/jsx-control-statements

TypeScript type for children is missing a render function

thitemple opened this issue · 1 comments

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

Resolved in #106