react-bootstrap Modal

Starting point for creating JSFiddles with React. This uses React with Addons.

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.24/browser.js"></script>
<script src="https://fb.me/react-with-addons-0.14.0.js"></script>
<script src="https://fb.me/react-dom-0.14.0.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-bootstrap/0.27.2/react-bootstrap.min.js"></script>
<script src="https://facebook.github.io/react/js/jsfiddle-integration-babel.js"></script>
<div id="container">
    <!-- This element's contents will be replaced with your component. -->
</div>

JavaScript 1.7

var Hello = React.createClass({
  getInitialState() {
    return { showModal: true };
  },

  close() {
    this.setState({ showModal: false });
  },

  open() {
    this.setState({ showModal: true });
  },
    render: function() {
    	return (
            <ReactBootstrap.Dropdown onToggle={() => {}} open={true}>
                <ReactBootstrap.Dropdown.Toggle noCaret className="breg-libman-settings-dropdown">
                    Settings
                </ReactBootstrap.Dropdown.Toggle>
                <ReactBootstrap.Dropdown.Menu>
                     <ReactBootstrap.MenuItem key={0}>
                        Upload<input type="file"/>
                    </ReactBootstrap.MenuItem>
                </ReactBootstrap.Dropdown.Menu>
            </ReactBootstrap.Dropdown>
      )
    }
});
 
ReactDOM.render(
	<Hello name="World" />,
    document.getElementById('container')
);