Skip to content

Commit 1855e87

Browse files
committed
docs: Added warning about having a single child
1 parent f8dd223 commit 1855e87

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ Here's a basic example:
4545

4646
?> **Note** There is no limit to the number of divs you have as children. The `SplitPane` will split them all accordingly.
4747

48-
!> The children can be any valid React child, but if a child is `null` it will be excluded from being split or displayed.
48+
!> The children can be any valid React child, but if a child is `null` it will be excluded from being split or displayed.
49+
50+
!> You must have **MORE** than one non-null child in the split-pane otherwise it will log an error and simply render the single child.
4951

5052
## Styling the Resizer 💅
5153

docs/_coverpage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
> The splittable, draggable and collapsible react layout library.
88
9-
- Simple and lightweight (~98kB gzipped)
9+
- Simple and lightweight (~89kB gzipped)
1010
- Minimal Dependencies
1111
- Easy styling and configuration
1212

0 commit comments

Comments
 (0)