Functional -> function (#863)

This commit is contained in:
Dan Abramov
2018-10-04 22:13:09 +01:00
committed by GitHub
parent f49ae1960e
commit 81afcfbd87
19 changed files with 41 additions and 41 deletions

View File

@@ -376,7 +376,7 @@ class DOMComponent {
The main difference after refactoring from `mountHost()` is that we now keep `this.node` and `this.renderedChildren` associated with the internal DOM component instance. We will also use them for applying non-destructive updates in the future.
As a result, each internal instance, composite or host, now points to its child internal instances. To help visualize this, if a functional `<App>` component renders a `<Button>` class component, and `Button` class renders a `<div>`, the internal instance tree would look like this:
As a result, each internal instance, composite or host, now points to its child internal instances. To help visualize this, if a function `<App>` component renders a `<Button>` class component, and `Button` class renders a `<div>`, the internal instance tree would look like this:
```js
[object CompositeComponent] {