scratch-www/src/components/forms/general-error.jsx

14 lines
330 B
React
Raw Normal View History

2016-06-06 10:10:27 -04:00
var Formsy = require('formsy-react');
var React = require('react');
module.exports = Formsy.HOC(React.createClass({
render: function () {
if (!this.props.showError()) return null;
return (
<p className="error">
{this.props.getErrorMessage()}
</p>
);
}
}));