Skip to content
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

Throw when host component has a function child #10360

Closed
gaearon opened this issue Aug 2, 2017 · 2 comments
Closed

Throw when host component has a function child #10360

gaearon opened this issue Aug 2, 2017 · 2 comments

Comments

@gaearon
Copy link
Collaborator

gaearon commented Aug 2, 2017

It surprised me that this doesn’t throw (neither in Stack nor in Fiber):

ReactDOM.render(
  <div>
    {function() {}}
  </div>,
  document.getElementById('container')
 );

Isn’t this always indicative of a mistake?

@gaearon
Copy link
Collaborator Author

gaearon commented Aug 2, 2017

If we fix #9577 we’ll probably fix this too.

@gaearon
Copy link
Collaborator Author

gaearon commented Aug 4, 2017

Let's discuss in #9577.

@gaearon gaearon closed this as completed Aug 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
@gaearon and others