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

 

posted @ 2021-08-14 14:42  键盘敲飞  阅读(63)  评论(0编辑  收藏  举报