how to use link and route react code example
Example 1: Link react router
<Link to="/about">About</Link>
Example 2: react router link
import React from "react";
import ReactDOM from "react-dom";
import { createBrowserHistory } from "history";
const customHistory = createBrowserHistory();
ReactDOM.render(<Router history={customHistory} />, node);