title: floating div that stays on top of page while going through page in React
body: <p>I created a long react based web page and I am thinking about placing a floating &lt; div > where I will place hyperlinks to visit different parts of this page. While visiting the page, I need this floating &lt; div > to always be visible. I will use this &lt; div > within the return call of a react component that displays my whole page. Is this possible? how? My mind tells me to create states for the coordinates of the floating &lt; div > but I don't understand how to update its position while browsing the page or selecting a link in that &lt; div > that will take me to another part of the page so I can keep this &lt; div > visible.</p>