1
0
mirror of synced 2025-01-23 07:02:12 +01:00

15 lines
405 B
JavaScript
Raw Normal View History

/** @jsx React.DOM */
var Checkbox = React.createClass({
render: function() {
return (
<span className={this.props.className} onClick={this.props.onClick}>
{this.props.checked ?
<span className="checkbox">&#9745;</span> :
<span className="checkbox">&#9744;</span>
}
</span>
);
},
});