Skip to content

Commit d7ce137

Browse files
committed
Merge branch 'master' of https://github.com/facebook/react into update-outdated-links
2 parents 2e7381f + 6eca8ef commit d7ce137

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/react-devtools/OVERVIEW.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,22 @@ Later operations will reference strings by a one-based index. For example, `1` w
4949

5050
#### Adding a root node
5151

52-
Adding a root to the tree requires sending 4 numbers:
52+
Adding a root to the tree requires sending 5 numbers:
5353

5454
1. add operation constant (`1`)
5555
1. fiber id
56-
1. element type constant (`8 === ElementTypeRoot`)
56+
1. element type constant (`11 === ElementTypeRoot`)
5757
1. profiling supported flag
58+
1. owner metadata flag
5859

5960
For example, adding a root fiber with an id of 1:
6061
```js
6162
[
6263
1, // add operation
6364
1, // fiber id
64-
8, // ElementTypeRoot
65+
11, // ElementTypeRoot
6566
1, // this root's renderer supports profiling
67+
1, // this root has owner metadata
6668
]
6769
```
6870

0 commit comments

Comments
 (0)