1
2
3
4
安装
npm install react-router-dom@6
yarn add react-router-dom@6
pnpm add react-router-dom@6