client/app/components/schools/SchoolList.js
import React from 'react'import {SchoolItem} from './SchoolItem' Similar blocks of code found in 2 locations. Consider refactoring.export const SchoolList = (props) => { return ( <ul className="schools"> {props.schools.map((school) => { return <SchoolItem {...school} key={school.id} /> })} </ul> )} SchoolList.propTypes = { schools: React.PropTypes.array.isRequired} SchoolList.defaultProps = { schools: []}