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

docs remove rootNode for componentDidMount/Update #618

Merged
merged 1 commit into from Nov 28, 2013
Merged

docs remove rootNode for componentDidMount/Update #618

merged 1 commit into from Nov 28, 2013

Conversation

chenglou
Copy link
Contributor

No description provided.

@vjeux
Copy link
Contributor

vjeux commented Nov 27, 2013

I really like this change :)

@chenglou
Copy link
Contributor Author

@zpao added the Note. Screwed up the other commit so submitting a new one here.

```

Invoked immediately after updating occurs. This method is not called for the initial render.

Use this as an opportunity to operate on the DOM when the component has been updated.

> Note:
>
> Until v0.5, The parameter `rootNode` was passed to this method as a shortcut to `this.getDOMNode()`.
Copy link
Member

Choose a reason for hiding this comment

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

"Until" isn't the right word here. At least the way I understand that, it means it stopped working in 0.5, which isn't true. Maybe just s/0.5/0.6/. Also, "The" shouldn't be capitalized. But also also, the name of the parameter isn't important. I would instead say something like "Prior to v0.6, the DOM node was passed in as the final argument. If you were using this, you can still access the DOM node by calling this.getDOMNode()."

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll just take your wording sentence lol

zpao added a commit that referenced this pull request Nov 28, 2013
docs remove rootNode for componentDidMount/Update
@zpao zpao merged commit d8a1dbb into facebook:master Nov 28, 2013
@chenglou chenglou deleted the didmout-didUpdate-new branch November 28, 2013 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants