// Simple pure-React component so we don't have to remember
// Bootstrap's classes
var BootstrapButton = React.createClass({
render: function() {
return (
);
}
});
var BootstrapModal = React.createClass({
// The following four methods are the only places we need to
// integrate with Bootstrap or jQuery!
componentDidMount: function() {
// When the component is added, turn it into a modal
$(this.getDOMNode())
.modal({backdrop: 'static', keyboard: false, show: false})
},
componentWillUnmount: function() {
$(this.getDOMNode()).off('hidden', this.handleHidden);
},
close: function() {
$(this.getDOMNode()).modal('hide');
},
open: function() {
$(this.getDOMNode()).modal('show');
},
render: function() {
var confirmButton = null;
var cancelButton = null;
if (this.props.confirm) {
confirmButton = (