-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[withWidth] Add innerRef property #12216
Comments
The |
@oliviertassinari can you give an example of how to use the RootRef? I want to access the props and state. With RootRef I only get access to the DOM. |
@itelo No, you can't access the state with RootRef, you will only be able to do it with |
Certainly, tomorrow I will submit a PR :) |
@itelo Awesome! We can copy the withStyles implementation: |
Expected Behavior
I expected to use like withStyles, that I access with innerRef.
Current Behavior
I can't access the ref of my component.
Examples
Context
I want to access refs using innerRef or something like that when using HOC withWidth
The text was updated successfully, but these errors were encountered: