Created
February 22, 2017 10:35
-
-
Save ryanlanciaux/3476b38d315da5e8ea7dd4971d77a25c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default class extends Component { | |
state = { data: fakeData.slice(0, 10)} | |
onClick = () => { | |
this.setState({ data: fakeData.slice(10, 20)}) | |
} | |
render() { | |
return ( | |
<div> | |
<button onClick={this.onClick}>Click</button> | |
<Griddle data={this.state.data} plugins={[plugins.LocalPlugin]} /> | |
</div> | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment