Skip to content

手动搭建React-TypeScript环境,并在其中使用Redux、Redux-thunk、axios、antd等第三方库

Notifications You must be signed in to change notification settings

CCZX/React-TypeScript-from0to1

Repository files navigation

1 ts的编译方式

  • ts-loader 编译的时候可以进行类型检查
  • babel-loader @babel/preset-typescript 不能进行类型检查

2.lint

  • tslint 进行ts代码检查一的
  • eslint 这个是社区比较通用的
  • 现在typescript官方慢慢废弃tslint,eslint
  1. thunk middleware
  2. redux 仓库ts类型
  3. 后端ts接口实现

About

手动搭建React-TypeScript环境,并在其中使用Redux、Redux-thunk、axios、antd等第三方库

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published