Create React App 中文文档 (bootcss.com)
网址:creat-react-app.bootcss.com
主流的脚手架:creat-react-app
创建脚手架的方法:
方法一(JS默认):
npx create-react-app my-app
cd my-app
npm start 启动项目
![](https://i-blog.csdnimg.cn/direct/ce4e4919c39944d6bbf460bed10373a3.png)
![](https://i-blog.csdnimg.cn/direct/7eeade7809b04c2b89a321990ff7fb23.png)
![](https://i-blog.csdnimg.cn/direct/cd9eaa797e064ba4816ecfbdb7062ae4.png)
![](https://i-blog.csdnimg.cn/direct/ebaf568f51d540fab0c8292a217b8a12.png)
![](https://i-blog.csdnimg.cn/direct/cb899e97328e40e2a7c0c1e582ccd7c7.png)
方法二(TS):
- npx create-react-app my-app-ts --template typescript
Create React App 中文文档 (bootcss.com)
网址:creat-react-app.bootcss.com
主流的脚手架:creat-react-app
npx create-react-app my-app
cd my-app
npm start 启动项目
- npx create-react-app my-app-ts --template typescript