Open craigcosmo opened 7 years ago
Yes.
When you do scroll.scrollToTop();
how does the scroll understand that we want to scroll the
<Link to="firstInsideContainer" containerId="containerElement">
Go to first element inside container
</Link>
<Link to="secondInsideContainer" containerId="containerElement">
Go to second element inside container
</Link>
<div className="element" id="containerElement">
<Element name="firstInsideContainer">
first element inside container
</Element>
<Element name="secondInsideContainer">
second element inside container
</Element>
</div>
I got a button, that when clicked, it activates scrollTop, the body tag will scroll to 3000px. Is there this component can help achieve that?