You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -141,9 +141,9 @@ Example - Let's say we render,
141
141
142
142
```js
143
143
<Text>Hello World</Text>
144
-
```
144
+
```
145
145
146
-
`createInstance` will then return the information about the `type` of an element (' TEXT '), props ( { children: 'Hello World' } ), and the root instance (`WordDocument`).
146
+
`createInstance` will then return the information about the `type` of an element (' TEXT '), props ( { children: 'Hello World' } ), and the root instance (`WordDocument`).
147
147
148
148
**Fiber**
149
149
@@ -183,11 +183,11 @@ A fiber is work on a component that needs to be done or was done. Atmost, a comp
183
183
184
184
**`appendInitialChild`**
185
185
186
-
It appends the children. If children are wrapped inside a parent component (eg: `Document`), then we will add all the children to it else we
186
+
It appends the children. If children are wrapped inside a parent component (eg: `Document`), then we will add all the children to it else we
187
187
will create a property called `document` on a parent node and append all the children to it. This will be helpful when we will parse the input component
188
188
and make a call to the render method of our component.
189
189
190
-
Example -
190
+
Example -
191
191
192
192
```js
193
193
constdata=document.render(); // returns the output
@@ -207,7 +207,7 @@ Renderer mounts the host component but may schedule some work to done after like
207
207
208
208
**`hostContext`**
209
209
210
-
Host context is an internal object which our renderer may use based on the current location in the tree. In DOM, this object
210
+
Host context is an internal object which our renderer may use based on the current location in the tree. In DOM, this object
211
211
is required to make correct calls for example to create an element in html or in MathMl based on current context.
212
212
213
213
**`getPublicInstance`**
@@ -256,8 +256,6 @@ Creates an instance of a text node.
256
256
257
257
You can also inject your renderer into react-devtools to debug the host components of your environment. Earlier, it wasn't possible for third party renderers but now using the return value of `reconciler` instance, it is possible to inject the renderer into react-devtools.
258
258
259
-
> Note - This wasn't supported in `react-reconciler` version 0.2.0. So you'll need to update it to the current beta version 0.3.0-beta.1
0 commit comments