const Events = React.createClass({ propTypes: { events: React.PropTypes.array.isRequired }, getTime(timeString) { return (new Date(timeString)).toTimeString().match(/^[\d:]*/)[0]; }, render() { let events; if (this.props.events.length) { events = this.props.events.map(event => { return (