import { HashLink } from 'react-router-hash-link'; <HashLink smooth to="/path#hash"> Link to Hash Fragment </HashLink>;