-
Notifications
You must be signed in to change notification settings - Fork 46.9k
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
What's the reason that a stateless function cannot return null? #5355
Comments
I think this is on the table for 0.15 (#4600):
|
Awesome. For now I'll return Thanks. |
@hnordt |
Yeah, this is currently a limitation because React constructs every class ( Not sure if we have another tracking issue though so we can use this one. |
👍 |
Fixed in #5884 |
When I return null from a stateless function I receive an error message. I would like to know what's the reason that a stateless function cannot return null.
Here is my sample code:
Thank you.
The text was updated successfully, but these errors were encountered: