react router and link code example
Example 1: react router Link does work
import { Link } from 'react-router-dom';
Example 2: Link react router
<Link to="/about">About</Link>
Example 3: link in react
<Link
to={{
pathname: "/courses",
search: "?sort=name",
hash: "#the-hash",
state: { fromDashboard: true }
}}
/>