Skip to content

Commit 6d88768

Browse files
committed
Documentation update
1 parent 2a6d564 commit 6d88768

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

README.md

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,10 @@ For a more high-level set of bindings, you might like to look at `purescript-the
1212
## Dynamic children
1313

1414
There are two ways that child elements can be passed to components:
15-
1. The first way is to spread the child element array when passing
16-
them to React's `createElement` function.
17-
The [React.DOM](docs/React/DOM.md) and [React.DOM.SVG](docs/React/DOM/SVG.md)
18-
spread the child element array.
19-
2. The second way is to pass the child element array to `createElement`
20-
without spreading. This is useful when dealing with
21-
[dynamic children](https://facebook.github.io/react/docs/multiple-components.html#dynamic-children).
22-
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.
3019

3120
## Building
3221

0 commit comments

Comments
 (0)