Reagieren Sie die Router installieren
npm install react-router-dom
Roseat Flamingo
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";
$ npm install react-router-dom@6
cd router-tutorial
npm install react-router-dom@6 history@5