mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-26 18:58:17 +00:00
Fix typo in reconciliation.md (#8110)
This commit is contained in:
committed by
Dan Abramov
parent
0ab8a03e93
commit
4ff3c13f60
@@ -29,7 +29,7 @@ Whenever the root elements have different types, React will tear down the old tr
|
||||
|
||||
When tearing down a tree, old DOM nodes are destroyed. Component instances receive `componentWillUnmount()`. When building up a new tree, new DOM nodes are inserted into the DOM. Component instances receive `componentWillMount()` and then `componentDidMount()`. Any state associated with the old tree is lost.
|
||||
|
||||
Any componts below the root will also get unmounted and have their state destroyed. For example, when diffing:
|
||||
Any components below the root will also get unmounted and have their state destroyed. For example, when diffing:
|
||||
|
||||
```xml
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user