I am trying to implement a List view in React.
What I am trying to achieve is that to store the list headers informations and register the components and register the scroll ev
You may be encouraged to use the Element.getBoundingClientRect() method to get the top offset of your element. This method provides the full offset values (left, top, right, bottom, width, height) of your element in the viewport.
Check the John Resig's post describing how helpful this method is.