I have one question though. I have let's say a home page, which has multiple sections, each section with its own reference.
I am able to, by clicking a button, scrolling to a section (I'm not using <Link> nor <Router>). But, what I'm trying to do now is, inside that section, click a new button, that scrolls to another section (which is not a child) of the home page.
Do you think it is possible without using the router component?
Thank you very much! Your articles are really helpful
This is an interesting method of achieving this feature. I've always used the id attribute to achieve this feature but I guess this way the ref wouldn't get added to the URL.
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.
valentina
Hi Victoria! Great article
I have one question though. I have let's say a home page, which has multiple sections, each section with its own reference. I am able to, by clicking a button, scrolling to a section (I'm not using <Link> nor <Router>). But, what I'm trying to do now is, inside that section, click a new button, that scrolls to another section (which is not a child) of the home page.
Do you think it is possible without using the router component?
Thank you very much! Your articles are really helpful