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] Clarify the usage of innerRef property of withStyles #9765

Merged
merged 1 commit into from Jan 6, 2018
Merged

[docs] Clarify the usage of innerRef property of withStyles #9765

merged 1 commit into from Jan 6, 2018

Conversation

nareshbhatia
Copy link
Contributor

As discussed with @oliviertassinari over Gitter.

@oliviertassinari oliviertassinari merged commit f510ba3 into mui:v1-beta Jan 6, 2018
@oliviertassinari oliviertassinari changed the title Clarified the usage of innerRef property of withStyles [docs] Clarify the usage of innerRef property of withStyles Jan 6, 2018
@oliviertassinari oliviertassinari added the docs Improvements or additions to the documentation label Jan 6, 2018
@nareshbhatia nareshbhatia deleted the clarify-innerref-docs branch January 6, 2018 18:19
@@ -173,7 +173,7 @@ This `classes` object contains the name of the class names injected in the DOM.

Some implementation details that might be interesting to being aware of:
- It adds a `classes` property so you can override the injected class names from the outside.
- It adds an `innerRef` property so you can get a reference to the wrapped component.
- It adds an `innerRef` property so you can get a reference to the wrapped component. The usage of `innerRef` is identical to `ref`. The only difference is that it attaches to the wrapped component.
Copy link
Member

Choose a reason for hiding this comment

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

Seems a bit redundant. The first sentence says exactly what it does.

Copy link
Member

Choose a reason for hiding this comment

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

capture d ecran 2018-01-06 a 19 32 46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants