NPM React Router Dom
$ npm install --save react-router-dom
Enthusiastic Elephant
$ npm install --save react-router-dom
npm install react-router-dom
npm install react-router-dom
// How to work with react router dom in react-web
import {
BrowserRouter as Router,
StaticRouter, // for server rendering
Route,
Link
// etc.
} from "react-router-dom";
cd router-tutorial
npm install react-router-dom@6 history@5