🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

react-siblings

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-siblings

React utility component for an array of elements (React v16+)

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

react-siblings

Small utility component that takes advantage of React 16's ability to return an array of elements from a component. All children are given a key and returned as array.

import Siblings from 'react-siblings';

const MyComponent = props =>
    <Siblings>
        <div>foo</div>
        <div>bar</div>
    </Siblings>;

This is equivalent to:

const MyComponent = props => [
    <div key="0">foo</div>,
    <div key="1">bar</div>
];

FAQs

Package last updated on 20 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts