-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
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
Paper doesn't accept a ref for it's div #5532
Comments
@simonhildebrandt Why not using the |
Closing this due to inactivity. |
@oliviertassinari React developers intend to deprecate the findDOMNode API eventually - jsx-eslint/eslint-plugin-react#678 I'd appreciate a prop to get a ref for the div too. |
@AlexAnthony I have been removing some ref properties lately #10025. As we encourage the usage of the |
I'd like to access the div in the Paper implementation for animation purposes, but currently the ref method returns the Paper object, not the div (as per React's normal behaviour.)
I'm proposing an extra prop (something like 'divRef'?) that can be passed down to be added to the div. Thoughts? I imagine this would be valuable across a large number of components, so I assume people will have an opinion about the neatest way to do it.
The text was updated successfully, but these errors were encountered: