React 开发模板:TypeScript、Styled-Components 等

基于 TypeScript、React、Styled-Components 等技术搭建的开发模板,集成 ESLint、Prettier 等工具,简化项目配置。

技术栈

  • TypeScript
  • React
  • Styled-Components
  • Yarn
  • React Router DOM
  • Axios
  • Create React App

工具

  • ESLint
  • Prettier

项目初始化

使用 Create React App 创建 TypeScript 项目。

代码风格

  • 使用 ESLint 确保代码质量。
  • 使用 Prettier 格式化代码。

全局样式

  • 创建 GlobalStyle 文件进行全局样式重置。
  • 避免使用 Prettier-Code Formatter 扩展,可能导致样式冲突。
zip 文件大小:226.84KB