Answers for "react scroll link"

2

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>
Posted by: Guest on October-15-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language