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

Suggestion: Make rootNode public property #91

Open
janliska opened this issue Oct 9, 2020 · 1 comment
Open

Suggestion: Make rootNode public property #91

janliska opened this issue Oct 9, 2020 · 1 comment

Comments

@janliska
Copy link

janliska commented Oct 9, 2020

Is there any particular reason why rootNode property and/or getRef method are private?
At some use cases it might be handy to have direct access to html element.

Could you consider making it possible to access the element? I can prepare merge request if you want ;-)
And if not could you describe your reasons so we can better understand it?

Thank you!

@yasintzHepsiburada
Copy link

my way is

ref={node => myRef.current = node.rootNode}

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

No branches or pull requests

2 participants