Skip to content

Instantly share code, notes, and snippets.

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