react-router环境简单搭建

[https://ant.design/docs/react/use-with-create-react-app-cn]首先,根据此链接完成react的安装,然后,使用命令npm install react-router-domnpm install history --save在package.json中安装相应的环境,接着,新建router.js和在home.jsreact-router环境简单搭建
router.js代码如下
react-router环境简单搭建
app.js代码如下
react-router环境简单搭建
home.js代码如下:
react-router环境简单搭建