19 lines
467 B
JavaScript
19 lines
467 B
JavaScript
/** @jsx React.DOM */
|
|
|
|
var Button = createReactClass({
|
|
render: function() {
|
|
return (
|
|
<button
|
|
className={this.props.className}
|
|
style={this.props.style}
|
|
disabled={this.props.disabled}
|
|
onClick={function(event) {
|
|
this.props.onClick(event);
|
|
}.bind(this)}
|
|
>
|
|
{this.props.title}
|
|
</button>
|
|
);
|
|
},
|
|
});
|