navigation scroll react

Solutions on MaxInterview for navigation scroll react by the best coders in the world

showing results for - "navigation scroll react"
Emma
08 Jul 2017
1import { Link } from "react-scroll";
2
3
4// somewhere in your markup
5<Link to="test1" spy={true} smooth={true} offset={50} duration={500}>Test</Link>
6
7// somewhere else in your markup. This is where it will scroll to.
8<div id="test1">...</div>
9