var CountryDropdown = React.createClass({ getInitialState: function() { return { showOptions: false }; }, render: function() { var options; if (this.state.showOptions) { options = ; } return (
{options}
); }, handleClick: function() { this.setState({ showOptions: true }); } }); ReactDOM.render( , document.getElementById('container') );