Skip to content

Added clarifying statement to React README#508

Closed
Ryan-McBride wants to merge 1 commit intoairbnb:masterfrom
Ryan-McBride:patch-3
Closed

Added clarifying statement to React README#508
Ryan-McBride wants to merge 1 commit intoairbnb:masterfrom
Ryan-McBride:patch-3

Conversation

@Ryan-McBride
Copy link
Contributor

Added a clarifying statement to explain why the underscore prefix isn't used in React.

Added a clarifying statement to explain why the underscore prefix isn't used in React.
@justjake
Copy link
Collaborator

They're not private by default. It's straightforward to call them from a parent component using refs.

@ljharb
Copy link
Collaborator

ljharb commented Dec 23, 2015

Closing this per #508 (comment). In addition, underscore-prefixed methods shouldn't be used ever in any context, since they provide a false sense of privacy and encourage breaking changes in a non-major release.

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.

3 participants