- 新建tsconfig.json文件,tsconfig.json是用来配置typescript项目设置,放在项目根目录,可以通过
tsc --init
去生成。 - 安装react相关的类型定义文件,
npm i -s @types/react @types/react-dom
- 编写
*.tsx
文件 - 编写
webpack.config.js
文件
-
Notifications
You must be signed in to change notification settings - Fork 0
simonwoo/react_ts
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
react project with typescript
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published