react常用命令

npm install -g create-react-app

create-react-app my-app

cd my-app/

启动项目:npm start

安装依赖:npm install

编译:npm run build