Skip to content

Commit

Permalink
docs: Added warning about having a single child
Browse files Browse the repository at this point in the history
  • Loading branch information
b-zurg committed Jun 25, 2020
1 parent f8dd223 commit 1855e87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ Here's a basic example:

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

!> The children can be any valid React child, but if a child is `null` it will be excluded from being split or displayed.
!> The children can be any valid React child, but if a child is `null` it will be excluded from being split or displayed.

!> 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.

## Styling the Resizer 💅

Expand Down
2 changes: 1 addition & 1 deletion docs/_coverpage.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

> The splittable, draggable and collapsible react layout library.
- Simple and lightweight (~98kB gzipped)
- Simple and lightweight (~89kB gzipped)
- Minimal Dependencies
- Easy styling and configuration

Expand Down

0 comments on commit 1855e87

Please sign in to comment.