react-app创建项目

142 阅读1分钟

1.创建项目

npx create-react-app my-app

2.进入项目

cd my-app

3.初始化项目

npm / yarn eject

4.启动项目

npm /yarn start