Example of use (button to call the modal window):
var Example = React.createClass({ render: function() { //var modal=... return ( <div className="example"> //{modal} <BootstrapButton onClick={this.openModal} className="btn-default"> Open modal </BootstrapButton> </div> ); }, openModal: function() { // action... } }); var BootstrapButton = React.createClass({ render: function() { return ( <a {...this.props} href="javascript:;" role="button" className={(this.props.className || '') + ' btn'} /> ); } ReactDOM.render(<Example />, document.getElementById('container'));