var React = require('react');

var Button = React.createClass({
	handleClick: function(){
		this.props.handleClick(this.props.buttonId);
	},
	render: function() {
		return (
			<button type="button" onClick={this.handleClick} className={this.props.className}>{this.props.text}</button>
		);
	}

});

module.exports = Button;