详细说明见仓库

Github仓库:https://github.com/mumu-pika/TypeScript-React-Starter

起步

💡 Tips:可通过 markdown 语法(+ `code` + + 空格)或者快捷键 ctrl/cmd + E快速插入行内代码。

在文本中使用行内代码,可以顺畅地显示代码变量名。

  1. npm install -g create-react-app

创建我们的新项目

  1. create-react-app my-app --scripts-version=react-scripts-ts
  1. my-app/
  2. ├─ .gitignore
  3. ├─ images.d.ts
  4. ├─ node_modules/
  5. ├─ public/
  6. ├─ src/
  7. │ └─ ...
  8. ├─ package.json
  9. ├─ tsconfig.json
  10. ├─ tsconfig.prod.json
  11. ├─ tsconfig.test.json
  12. └─ tslint.json