脚手架初始化 react 项目 react-router 路由

1,首先创建

npm install -g create-react-app
create-react-app my-app      //my-app  项目名称
cd my-app   //进入项目
npm start   // 启动项目

2,安装 react-router 

npm install --save react-router    3.2.1版本

3,项目目录我就不介绍了,初识  react 加上 Antd UI框架 写了一个小demo,github地址如下:

猜你喜欢

转载自www.cnblogs.com/hai-cheng/p/9117732.html