You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Breaking change to React StatelessComponent definition #11929
$ tsc -p .
src/app/test.tsx(9,7): error TS2605: JSX element type'ReactElement<any> | null' is not a constructor functionfor JSX elements.
Type 'null' is not assignable to type'ElementClass'.
changed the title [-]Breaking change to React Stateless Components definition[/-][+]Breaking change to React StatelessComponent definition[/+]on Oct 12, 2016
Activity
[-]Stateless[/-][+]Breaking change to React Stateless Components definition[/+][-]Breaking change to React Stateless Components definition[/-][+]Breaking change to React StatelessComponent definition[/+]donaldpipowitch commentedon Oct 12, 2016
I'm sorry. I'll try to fix this.
donaldpipowitch commentedon Oct 12, 2016
Sorry, I think this could be a bug with TypeScript itself. I'll write a bug issue there and make a revertable pull request.
fixes DefinitelyTyped#11929
janslow commentedon Oct 12, 2016
Thanks.
janslow commentedon Oct 21, 2016
@donaldpipowitch, have you created a PR request for this? Thanks.
donaldpipowitch commentedon Oct 21, 2016
My PR was integrated into this PR #11935, but sadly no one has reviewed it so far :(
donaldpipowitch commentedon Nov 9, 2016
@janslow Should be fixed with #11935
Could you test and close this issue, if it works?
janslow commentedon Nov 11, 2016
Yep, that's fixed it now, thanks!