clauderic / react-tiny-virtual-list

A tiny but mighty 3kb list virtualization library, with zero dependencies 💪 Supports variable heights/widths, sticky items, scrolling to index, and more!
https://clauderic.github.io/react-tiny-virtual-list/
MIT License
2.46k stars 166 forks source link

Suggestion: Make rootNode public property #91

Open janliska opened 3 years ago

janliska commented 3 years ago

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 commented 3 years ago

my way is

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