怎么创建react+ts项目
时间: 2023-08-27 18:04:53 浏览: 259
要创建一个React TypeScript项目,可以按照以下步骤进行操作:
1. 打开终端,运行以下命令来创建一个新的React TypeScript项目:
```
npx create-react-app my-app --template typescript
```
这将使用create-react-app脚手架工具创建一个新的React TypeScript项目,并将其命名为"my-app"。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [react+ts搭建](https://blog.csdn.net/m0_56540662/article/details/124267829)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [创建React + Ts项目](https://blog.csdn.net/ZiChen_Jiang/article/details/126347236)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文