-
Notifications
You must be signed in to change notification settings - Fork 47.1k
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
docs - MyComponent() does not create component instance #2179
Comments
Good catch. We updated a lot of other places as we evolved the API but obviously missed at least one. Let us know if you see any more! |
zpao
added a commit
to zpao/react
that referenced
this issue
Sep 22, 2014
This was referenced Jul 27, 2021
This was referenced Sep 15, 2021
This was referenced Apr 7, 2022
This was referenced Jan 4, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
in the docs here:
https://github.com/facebook/react/blob/master/docs/docs/ref-02-component-api.md#reactcomponent
it says, that:
"Component classes created by React.createClass() return instances of ReactComponent when called".
But it turns out, React.renderComponent(...) actually creates the component instance, at least the one you work with. I think, the docs should reflect that.
The text was updated successfully, but these errors were encountered: