title: How to get scroll position of component?
body: <p>How could I get scroll position of a ReactJS component (-which is scrollable)? I suppose I have to add a scroll event listener to my component but I'm stuck there as I don't know how to add it to component - only to window. And also by which prop can I access the scroll position?</p>