'use strict'; const React = require('react'); const ErrorMessages = React.createClass({ render () { if (!this.props.errors.length) { return
; } const errorNodes = this.props.errors.map((e, i) =>
  • {e}
  • ); return (
    ); }, }); module.exports = ErrorMessages;