基于 TypeScript 的 React 应用模板

该项目使用 Create React App 初始化,并整合了 TypeScript。 您可以访问 Create React App 官网 获取更多信息。

如需学习 React,请参考 React 官方文档

启动应用

运行以下命令启动应用:

npm run start

应用启动后,在浏览器中打开 http://localhost:3000 即可访问。

构建与部署

该模板使用 GitHub Actions 进行测试、构建并将应用部署到 GitHub Pages。

如需将该管道应用于您的项目,请将项目中的 homepage 路径更新为您的项目路径。

zip
react-typescript-template-master.zip 预估大小:25个文件
folder
react-typescript-template-master 文件夹
file
.gitignore 310B
file
package.json 2KB
file
package-lock.json 692KB
folder
src 文件夹
file
react-app-env.d.ts 40B
file
logo.svg 3KB
file
setupTests.ts 241B
file
App.css 564B
file
index.css 366B
file
index.tsx 500B
file
App.test.tsx 273B
file
reportWebVitals.ts 425B
file
App.tsx 556B
folder
public 文件夹
file
robots.txt 67B
file
logo192.png 5KB
file
index.html 2KB
file
favicon.ico 4KB
file
manifest.json 492B
file
logo512.png 9KB
file
tsconfig.json 503B
folder
.github 文件夹
file
auto-merge.yml 239B
folder
workflows 文件夹
file
codeql-analysis.yml 2KB
file
ci-pipeline.yml 584B
file
dependabot.yml 501B
file
README.md 971B
file
.prettierrc 128B
zip 文件大小:197.18KB