[go: up one dir, main page]

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

Blog: move "refs to custom components..." fixes #4305 #4306

Merged
merged 1 commit into from
Jul 15, 2015

Conversation

brigand
Copy link
Contributor
@brigand brigand commented Jul 7, 2015

Just to prevent the TL;DR confusion. Separate paragraph and moved up above the code block. s/References/Refs for consistency.

@brigand
Copy link
Contributor Author
brigand commented Jul 7, 2015

cc @jimfb

@@ -66,7 +68,7 @@ var Zoo = React.createClass({
});
```

This change also applies to the return result of `ReactDOM.render` when passing a DOM node as the top component. References to custom component classes work exactly as before.
This change also applies to the return result of `ReactDOM.render` when passing a DOM node as the top component.
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe also put some text here to drive the point home?

Maybe something like:

This change also applies to the return result of ReactDOM.render when passing a DOM node (eg. span, div, img) as the top component. As with refs, this change does not affect custom components (eg. <MyFancyMenu> or <MyContextProvider>), which remain unaffected by this change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed, thanks.

@jimfb
Copy link
Contributor
jimfb commented Jul 7, 2015

cc @spicyj There has already been a few people who have been confused by the old wording, as per #4305.

Just to prevent the TL;DR confusion. Separate paragraph and moved up above the code block. `s/References/Refs` for consistency.
sophiebits added a commit that referenced this pull request Jul 15, 2015
Blog: move "refs to custom components..." fixes #4305
@sophiebits sophiebits merged commit 44ed601 into facebook:master Jul 15, 2015
@sophiebits
Copy link
Collaborator

Sure, thanks.

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.

4 participants