Skip to content

Commit 20dda7b

Browse files
authored
chore: Update README.md
1 parent d4f6f4b commit 20dda7b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
- DO NOT use `<React.StrictMode />`
44
- (React v18+) DO NOT use `ReactDOMClient.createRoot`, use `ReactDOM.render` instead, https://github.com/CJY0208/react-activation/issues/225#issuecomment-1311136388
55

6+
or You can disable `autoFreeze` to work with `createRoot` though this may result in performance loss
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)