React脚手架的使用

初始化项目

npx create-react-app my-app
//
npm init react-app my-app
//
yarn create react-app my-app

启动项目

cd my-app
npm start
//
yarn start
原文地址:https://www.cnblogs.com/sysg/p/15140810.html