This commit is contained in:
Valentin Vetter
2023-01-10 19:51:45 +01:00
committed by GitHub
parent 09f0da6551
commit cde02f82af

View File

@@ -153,7 +153,7 @@ With Strict Mode starting in React 18, whenever a component mounts in developmen
```
* React mounts the component.
* Layout effects are created.
* Effect effects are created.
* Effects are created.
* React simulates effects being destroyed on a mounted component.
* Layout effects are destroyed.
* Effects are destroyed.
@@ -169,7 +169,7 @@ When the component unmounts, effects are destroyed as normal:
```
* React unmounts the component.
* Layout effects are destroyed.
* Effect effects are destroyed.
* Effects are destroyed.
```
Unmounting and remounting includes: