Skip to content

Commit 8d13c7c

Browse files
committed
chore: readme.md
1 parent 219ea3c commit 8d13c7c

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

README.en-US.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,10 @@ The **React-Ts-Template** project template aims to reduce developers' tedious co
121121
> [React-Ts-Template](https://github.com/huangmingfu/react-ts-template)
122122
123123
## Note
124-
> 1.Currently, some UI libraries do not support React 19. Please be cautious when installing and using them.
125-
> 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.
124+
125+
> 1. Currently, some UI libraries or third-party libraries do not yet support React 19. Please verify and choose appropriate versions for installation and usage.
126+
> 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.
127+
126128
```bash
127129
pnpm install react@18.3.1 react-dom@18.3.1
128-
```
130+
```

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ GitHub 项目地址:[React-Ts-Template](https://github.com/huangmingfu/react-t
110110
- 将需要保存状态组件的 state 提升至父组件中保存。
111111
- 使用 CSS visible 属性来控制需要保存状态组件的渲染,而不是使用 if/else,以避免 React 将其卸载。
112112

113-
> 不过也有一些相关库实现了这个功能,如:react-router-cache-route、react-activation、keepalive-for-react等等,如果项目中需要状态缓存处理的数据量较小,那最好还是按照 React 官方的建议,手动解决状态缓存问题。
113+
> 不过也有一些相关库实现了这个功能,如:`react-router-cache-route、react-activation、keepalive-for-react` 等等,如果项目中需要状态缓存处理的数据量较小,那最好还是按照 React 官方的建议,手动解决状态缓存问题。
114114
115115
---
116116

@@ -123,8 +123,10 @@ GitHub 项目地址:[React-Ts-Template](https://github.com/huangmingfu/react-t
123123
> [React-Ts-Template](https://github.com/huangmingfu/react-ts-template)
124124
125125
## 注意
126-
> 1.目前有一些ui库还未支持React19,注意甄别安装使用。
127-
> 2.本项目并未使用19版本的相关特性,如需要,可以直接使用如下命令降级到18版本。
126+
127+
> 1. 目前有一些 ui 库或其他第三方库还尚未支持 `react19`,注意甄别安装使用。
128+
> 2. 本项目并未使用 19 版本的相关特性,如需要可以直接使用如下命令降级到 18 版本。
129+
128130
```bash
129131
pnpm install react@18.3.1 react-dom@18.3.1
130-
```
132+
```

0 commit comments

Comments
 (0)