children type incorrect for Fragment, StrictMode and Suspense
cknitt opened this issue · 0 comments
cknitt commented
children for <>, React.Fragment, React.StrictMode and React.Suspense are typed as 'children instead of React.element.
This allows to compile incorrect code that breaks at runtime like
@react.component
let make = () => {
<React.Suspense> 1 </React.Suspense>
}