Enable null return values in plain functions - #5884
Merged
Merged
Conversation
jimfb
force-pushed
the
component-extends-react-component
branch
from
January 19, 2016 21:42
d8ef46a to
d32aee5
Compare
Contributor
Author
jimfb
force-pushed
the
component-extends-react-component
branch
from
January 20, 2016 22:11
d32aee5 to
757756f
Compare
Contributor
|
@jimfb updated the pull request. |
Contributor
|
🙌 |
Contributor
Author
|
Ping @sebmarkbage @spicyj |
Collaborator
|
I thought I reviewed this already. 👍 |
jimfb
added a commit
that referenced
this pull request
Jan 29, 2016
Enable null return values in plain functions
Merged
|
👍 |
afc163
added a commit
to react-component/table
that referenced
this pull request
Aug 2, 2016
gaearon
added a commit
to gaearon/react
that referenced
this pull request
Dec 28, 2016
This test is identical to "should warn when stateless component returns array" earlier. It was moved from another file in react#5884 so it likely survived by accident.
gaearon
added a commit
to gaearon/react
that referenced
this pull request
Dec 28, 2016
We have an invariant that checks the same case right afterwards. The warning was originally added in react#5884 with a distinct wording. However it was later changed to the same wording as the invariant in react#6008. I don't see why we would want to have both since they're saying the same thing and with (almost) the same internal stack.
10 tasks
1 task
SecretJsDev
added a commit
to SecretJsDev/table
that referenced
this pull request
Jun 12, 2025
Naveen-Kumar999
added a commit
to Naveen-Kumar999/react-component
that referenced
this pull request
Nov 16, 2025
mrizwanashiq
pushed a commit
to mrizwanashiq/react
that referenced
this pull request
Jun 25, 2026
…onent Enable null return values in plain functions
mrizwanashiq
pushed a commit
to mrizwanashiq/react
that referenced
this pull request
Jun 25, 2026
This test is identical to "should warn when stateless component returns array" earlier. It was moved from another file in react#5884 so it likely survived by accident.
mrizwanashiq
pushed a commit
to mrizwanashiq/react
that referenced
this pull request
Jun 25, 2026
We have an invariant that checks the same case right afterwards. The warning was originally added in react#5884 with a distinct wording. However it was later changed to the same wording as the invariant in react#6008. I don't see why we would want to have both since they're saying the same thing and with (almost) the same internal stack.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enable null return values in plain functions by removing support for inheritless classes, as per #5355.