按照以下命令进行傻瓜式操作即可:
- 全局安装脚手架工具:
npm install -g create-react-app
- 创建项目my-react-app:
create-react-app my-react-app
- 安装 antd:
yarn add antd
- 安装 react-router-dom:
yarn add react-router-dom
- 启动项目:
yarn start
npm install -g create-react-app
create-react-app my-react-app
yarn add antd
yarn add react-router-dom
yarn start