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
In this case a `key` property should be assigned direclty to each child.
23
-
The [React.DOM.Dynamic](docs/React/DOM/Dynamic.md) and
24
-
[React.DOM.SVG.Dynamic](docs/React/DOM/SVG/Dynamic.md) pass the child
25
-
element array without spreading.
26
-
27
-
Note that this module provides functions `createElement` and
28
-
`createElementDynamic` to handle the two cases above for component
29
-
classes.
15
+
- The first way is to spread the child element array when passing them to React's `createElement` function. The [React.DOM](docs/React/DOM.md) and [React.DOM.SVG](docs/React/DOM/SVG.md) spread the child element array.
16
+
- The second way is to pass the child element array to `createElement` without spreading. This is useful when dealing with [dynamic children](https://facebook.github.io/react/docs/multiple-components.html#dynamic-children). In this case a `key` property should be assigned direclty to each child. The [React.DOM.Dynamic](docs/React/DOM/Dynamic.md) and [React.DOM.SVG.Dynamic](docs/React/DOM/SVG/Dynamic.md) pass the child element array without spreading.
17
+
18
+
Note that this module provides functions `createElement` and `createElementDynamic` to handle the two cases above for component classes.
0 commit comments