-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TSX behaves differently than plain TS when component returns null #11566
Comments
@yuit we'll need to update |
When this is fixed the case for returning strings from stateless components should also be fixed.
|
@JakeGinnivan could you give a pointer to the documentation about return strings from SFC, I couldn't find it online. Thanks |
@yuit I can't find anything actually, seems that usage was wrong. |
Hi guys, The change in react.d.ts has generated some breaking changes and we're not sure what's the way forward:
The issue is here: |
We're going to be taking a look into fixing this up. |
TypeScript Version: 2.1.0-dev.20160829
With
@types/react@0.14.41
and"strictNullChecks": true
.Code
Expected behavior:
TSX behaves like plain TS.
Actual behavior:
TSX throws
The text was updated successfully, but these errors were encountered: