Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit 82cfe2e

Browse files
committed
update readme
1 parent 42b8cd9 commit 82cfe2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,11 @@ const MyComp = props => (
154154
<MyComp param={( dynamic() )} other={ static } />
155155
```
156156

157-
Components may have children. This is available as props.children. It will either be the value of a single expression child or it will be a DOM node(Fragment in case of multi-children) which can be rendered. Children are always evaluated lazily upon access (like dynamic properties).
157+
Components may have children. This is available as props.children. It may be a node, a function, or a string, or an array of the aforementioned. Non-expression children like DOM nodes are set to evaluate lazily (upon access by default). For single expressions you must use {( )} to have the same behaviour.
158158

159159
## Fragments
160160

161-
This plugin also supports JSX Fragments with `<></>` notation. However they use a Persistent Fragment based on [Document Persistent Fragment](https://github.com/WebReflection/document-persistent-fragment). Look at your specific libraries documentation to learn how to include the polyfill.
161+
This plugin also supports JSX Fragments with `<></>` notation. These will be compiled to arrays. The fragment syntax provides the convenience of being able to use the template syntax to wrap expressions.
162162

163163
## Work in Progress
164164

0 commit comments

Comments
 (0)