我需要在两个路径之间进行路由,我安装了npm install react-router (RES-路由器: 6.2.1和router: 5.2.0)。我在网页Error: useRoutes() may be used only in the context of a <Router> component.中说了一个错误,这最终意味着我没有用BrowserRouter代码:index.js
import {BrowserRouter as Router} from "react-router-<em