# React + TypeScript + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
## Expanding the ESLint configuration
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
- Configure the top-level `parserOptions` property like this:
```js
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
```
- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
没有合适的资源?快使用搜索试试~ 我知道了~
react+ts+antd-mobile 动态tabs和下拉加载及详情
共46个文件
ts:18个
tsx:12个
json:8个
0 下载量 27 浏览量
2024-02-03
09:09:21
上传
评论
收藏 163KB ZIP 举报
温馨提示
react+ts+antd-mobile 动态tabs和下拉加载及详情
资源推荐
资源详情
资源评论
收起资源包目录
react-jike-mobile.zip (46个子文件)
react-jike-mobile
tsconfig.node.json 213B
package-lock(1).json 211KB
package(1).json 900B
src
pages
Home
style.css 178B
index.tsx 721B
index(1).tsx 721B
style(1).css 178B
HomeList
users.ts 1KB
index.tsx 3KB
index(1).tsx 3KB
users(1).ts 1KB
useTabs.ts 510B
useTabs(1).ts 510B
Detail
index.tsx 1KB
index(1).tsx 1KB
App(1).tsx 175B
main.tsx 300B
App.tsx 175B
main(1).tsx 300B
utils
http.ts 451B
http(1).ts 451B
index.ts 100B
index(1).ts 100B
router
index.tsx 285B
index(1).tsx 285B
vite-env.d.ts 38B
vite-env.d(1).ts 38B
apis
shared.ts 77B
detail(1).ts 1KB
shared(1).ts 77B
detail.ts 1KB
list(1).ts 842B
list.ts 842B
tsconfig(1).json 733B
package.json 900B
public
vite(1).svg 1KB
vite.svg 1KB
tsconfig.node(1).json 213B
package-lock.json 211KB
index(1).html 366B
vite.config.ts 270B
index.html 366B
README(1).md 1KB
tsconfig.json 733B
vite.config(1).ts 270B
README.md 1KB
共 46 条
- 1
资源评论
jiojio冲冲冲
- 粉丝: 713
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功