Skip to content

[Wip] Fix 11566 : allow null return in SFC - #14045

Closed
Yui (yuit) wants to merge 2 commits into
wip-master-statelessOverloadfrom
master-fix11566
Closed

[Wip] Fix 11566 : allow null return in SFC#14045
Yui (yuit) wants to merge 2 commits into
wip-master-statelessOverloadfrom
master-fix11566

Conversation

@yuit

Copy link
Copy Markdown
Contributor

Fix #11566.... This PR is need to be open against master when this PR #13640 is merged.

When check return type of SFC, instead of checking against just JSX.Element, we check the return type against JSX.Element and null.

The change here will be the one ported to DefinitelyTyped

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants