Skip to content

Commit

Permalink
perf: 注释
Browse files Browse the repository at this point in the history
  • Loading branch information
huangmingfu committed Dec 18, 2024
1 parent 587b2a5 commit 0200b5f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ The **React-Ts-Template** project template aims to reduce developers' tedious co
> [React-Ts-Template](https://github.com/huangmingfu/react-ts-template)
## Note
> Currently, some UI libraries do not support React 19. Please be cautious when installing and using them.
> This project does not use any features specific to version 19. If needed, you can directly downgrade to version 18 using the following command.
> 1.Currently, some UI libraries do not support React 19. Please be cautious when installing and using them.
> 2.This project does not use any features specific to version 19. If needed, you can directly downgrade to version 18 using the following command.
```bash
pnpm install react@18.3.1 react-dom@18.3.1
```
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ GitHub 项目地址:[React-Ts-Template](https://github.com/huangmingfu/react-t
> [React-Ts-Template](https://github.com/huangmingfu/react-ts-template)
## 注意
> 目前有一些ui库还未支持React19,注意甄别安装使用。
> 本项目并未使用19版本的相关特性,如需要,可以直接使用如下命令降级到18版本。
> 1.目前有一些ui库还未支持React19,注意甄别安装使用。
> 2.本项目并未使用19版本的相关特性,如需要,可以直接使用如下命令降级到18版本。
```bash
pnpm install react@18.3.1 react-dom@18.3.1
```
6 changes: 3 additions & 3 deletions src/router/utils/route-guard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
* 不确定的影响(来源网上评论):
* 在useEffect 里去做路由守卫的话是否会出现页面内容加载完后以及触发接口调用后才跳出页面的情况。
*
* React-Ts-Template 默认使用的是第一种实现方式,如果更喜欢下面这种,可以根据情况修改;
* 如果使用默认的实现,可以将此文件删除。
* React-Ts-Template 默认使用的是第一种实现方式(loader),如果更喜欢下面这种,可以根据情况修改;
* 如果使用默认的loader实现,【可以将此文件删除
*
* 其他封装拦截组件方式参考
* 其他拦截组件封装方式参考
* https://segmentfault.com/a/1190000044439881
*/
import { FC, ReactNode, useEffect } from 'react';
Expand Down
2 changes: 1 addition & 1 deletion src/styles/scss/global.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** 公共样式放置处 */
/** 公共样式放置处,main.tsx 中被引入 */
@import '../css/reset.css'; // 重置样式

/** v-show */
Expand Down

0 comments on commit 0200b5f

Please sign in to comment.