Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to add react scroll scrollable link

// To scroll down to your anchor tags, you need to install
// React Router Hash Link, with:

npm install --save react-router-hash-link

//then import Hash Link:
import { HashLink as Link } from 'react-router-hash-link';

//then use Hash Link, for example.

<Link to="/pathLink#yourAnchorTag">Your link text</Link>
 
PREVIOUS NEXT
Tagged: #add #react #scroll #scrollable #link
ADD COMMENT
Topic
Name
6+5 =