Skip to content

Commit a050cfa

Browse files
authored
chore: Update README_CN.md
1 parent 20dda7b commit a050cfa

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

README_CN.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
- 不要使用 `<React.StrictMode />` 严格模式
44
- (React v18+) 不要使用 `ReactDOMClient.createRoot`, 而是使用 `ReactDOM.render`, https://github.com/CJY0208/react-activation/issues/225#issuecomment-1311136388
55

6+
或者可以关闭 `autoFreeze` 来兼容 `createRoot`,但这会造成性能损失
7+
8+
```jsx
9+
import { KeepAlive } from 'react-activation'
10+
KeepAlive.defautProps.autoFreeze = false // default 'true'
11+
```
12+
613
# React Activation
714

815
[![size](https://img.shields.io/bundlephobia/minzip/react-activation@latest.svg)](https://bundlephobia.com/result?p=react-activation@latest)

0 commit comments

Comments
 (0)