Link as router react code example
Example 1: react router Link does work
import { Link } from 'react-router-dom';
Example 2: react router link
import React from "react";
import ReactDOM from "react-dom";
import { Router } from "react-router";
import { createBrowserHistory } from "history";
const history = createBrowserHistory();
ReactDOM.render(
<Router history={history}>
<App />
</Router>,
node
);