react-siblings
Advanced tools
+1
-1
| { | ||
| "name": "react-siblings", | ||
| "version": "1.0.0", | ||
| "version": "1.0.1", | ||
| "description": "React utility component for an array of elements (React v16+)", | ||
@@ -5,0 +5,0 @@ "author": "mkrause", |
+11
-0
@@ -8,2 +8,4 @@ | ||
| ```jsx | ||
| import Siblings from 'react-siblings'; | ||
| const MyComponent = props => | ||
@@ -15,1 +17,10 @@ <Siblings> | ||
| ``` | ||
| This is equivalent to: | ||
| ```jsx | ||
| const MyComponent = props => [ | ||
| <div key="0">foo</div>, | ||
| <div key="1">bar</div> | ||
| ]; | ||
| ``` |
7540
2.24%25
78.57%