Skip to content

Enable null return values in plain functions - #5884

Merged
jimfb merged 1 commit into
react:masterfrom
jimfb:component-extends-react-component
Jan 29, 2016
Merged

Enable null return values in plain functions#5884
jimfb merged 1 commit into
react:masterfrom
jimfb:component-extends-react-component

Conversation

@jimfb

@jimfb jimfb commented Jan 19, 2016

Copy link
Copy Markdown
Contributor

Enable null return values in plain functions by removing support for inheritless classes, as per #5355.

@jimfb jimfb added this to the 0.15 milestone Jan 19, 2016
@sebmarkbage sebmarkbage mentioned this pull request Jan 19, 2016
7 tasks
@jimfb
jimfb force-pushed the component-extends-react-component branch from d8ef46a to d32aee5 Compare January 19, 2016 21:42
@jimfb

jimfb commented Jan 20, 2016

Copy link
Copy Markdown
Contributor Author

@sebmarkbage @spicyj

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

false

@jimfb
jimfb force-pushed the component-extends-react-component branch from d32aee5 to 757756f Compare January 20, 2016 22:11
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@jimfb updated the pull request.

@jquense

jquense commented Jan 29, 2016

Copy link
Copy Markdown
Contributor

🙌

@jimfb

jimfb commented Jan 29, 2016

Copy link
Copy Markdown
Contributor Author

Ping @sebmarkbage @spicyj

@sophiebits

Copy link
Copy Markdown
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
@jimfb
jimfb merged commit 188e8cd into react:master Jan 29, 2016
@martiros

Copy link
Copy Markdown

👍

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.
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants