UNPKG

presale-demo-pe

Version:

This project was bootstrapped with [Create React App](https://github.com/facebookincubator/create-react-app).

32 lines (27 loc) 560 B
import React, { PropTypes } from 'react'; import Social from '../Social'; import { v4 } from 'node-uuid'; import './Socials.css'; const renderItem = (props) => { return ( <li className="socials__item" key={v4()} > <Social {...props} /> </li> ) }; const Socials = ({ list }) => { return ( <ul className="socials"> { list.map(renderItem) } </ul> ) }; Socials.propTypes = { list: PropTypes.array }; export default Socials;