Valentin Vetter
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
content/docs/strict-mode.md
|
@ -153,7 +153,7 @@ With Strict Mode starting in React 18, whenever a component mounts in developmen |
|
|
``` |
|
|
``` |
|
|
* React mounts the component. |
|
|
* React mounts the component. |
|
|
* Layout effects are created. |
|
|
* Layout effects are created. |
|
|
* Effect effects are created. |
|
|
* Effects are created. |
|
|
* React simulates effects being destroyed on a mounted component. |
|
|
* React simulates effects being destroyed on a mounted component. |
|
|
* Layout effects are destroyed. |
|
|
* Layout effects are destroyed. |
|
|
* Effects are destroyed. |
|
|
* Effects are destroyed. |
|
@ -169,7 +169,7 @@ When the component unmounts, effects are destroyed as normal: |
|
|
``` |
|
|
``` |
|
|
* React unmounts the component. |
|
|
* React unmounts the component. |
|
|
* Layout effects are destroyed. |
|
|
* Layout effects are destroyed. |
|
|
* Effect effects are destroyed. |
|
|
* Effects are destroyed. |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
Unmounting and remounting includes: |
|
|
Unmounting and remounting includes: |
|
|