React配置开发环境

react yekong 1049℃

官方脚手架工具 create-react-app

安装脚手架

sudo npm install create-react-app -g

创建react项目

create-react-app my-project

运行项目

进入项目目录

cd my-project
  

运行项目

yarn start

打包项目

yarn build

wanjunshijiecom 2021-09-19 at 14.55.33@2x

喜欢 (0)