We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20dda7b commit a050cfaCopy full SHA for a050cfa
1 file changed
README_CN.md
@@ -3,6 +3,13 @@
3
- 不要使用 `<React.StrictMode />` 严格模式
4
- (React v18+) 不要使用 `ReactDOMClient.createRoot`, 而是使用 `ReactDOM.render`, https://github.com/CJY0208/react-activation/issues/225#issuecomment-1311136388
5
6
+ 或者可以关闭 `autoFreeze` 来兼容 `createRoot`,但这会造成性能损失
7
+
8
+ ```jsx
9
+ import { KeepAlive } from 'react-activation'
10
+ KeepAlive.defautProps.autoFreeze = false // default 'true'
11
+ ```
12
13
# React Activation
14
15
[](https://bundlephobia.com/result?p=react-activation@latest)
0 commit comments