Skip to content

Instantly share code, notes, and snippets.

@dance2die
Created Dec 4, 2017
Embed
What would you like to do?
render() {
const { components } = this.state;
return (
<div className="App">
<div className="buttons">
<div>
<button id="table" onClick={this.handleShowTableChange}>Show Table</button>
</div>
<div>
<button id="graph" onClick={this.handleShowGraphChange}>Show Graph</button>
</div>
<div>
<button id="null" onClick={this.handleNullGraphChange}>Not yet implemented...</button>
</div>
</div>
<div className="views">
{components.length === 0 ? (
<div>Nothing to display...</div>
) : (components)}
</div>
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment