The Gif showed on my PC, I guess it was a network issue on my phone even though I tried different browsers on my phone.
Oh yes, I do know we make use of ref attribute to access DOM elements, but I meant to say you could achieve the same functionality using the id attribute with anchor elements and some CSS, at least that's how I would have done it.
But for this method, the id value would get added to the browser URL address.
Here's a pen demonstrating what I meant.
codesandbox.io/s/lucid-browser-hlbx8