Skip to content

Commit 8af622d

Browse files
committed
fixup! Export isChildrenEmpty from RUI.
1 parent 402322f commit 8af622d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/helpers/isChildrenEmpty/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@ React.createElement(() => {
3636

3737
```docoff-react-preview
3838
React.createElement(() => {
39-
const children = "Meaningful content";
39+
const children = (
40+
<>
41+
<h1>Title</h1>
42+
<p>Content</p>
43+
</>
44+
);
4045
const isEmpty = isChildrenEmpty(children);
4146
4247
if (isEmpty === false) {

0 commit comments

Comments
 (0)