* use @xarc/xrun to streamline tasks in an imperative manner * add lint-staged/husky for git hook tasks * run prettier across all files * fixing tests * add ci test workflow * add a ci workflow * remove precommit in favor of husky * add .prettierrc.js * reformat with prettier
12 lines
315 B
JavaScript
12 lines
315 B
JavaScript
var React = require('react');
|
|
var reactCreateClass = require('create-react-class');
|
|
var classNames = require('classnames');
|
|
|
|
var Alert = reactCreateClass({
|
|
render: function () {
|
|
return <div className={classNames('alert', 'alert-' + this.props.type)}>{this.props.text}</div>;
|
|
},
|
|
});
|
|
|
|
module.exports = Alert;
|