Skip to content

Instantly share code, notes, and snippets.

@ryanlanciaux
Created February 22, 2017 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanlanciaux/3476b38d315da5e8ea7dd4971d77a25c to your computer and use it in GitHub Desktop.
Save ryanlanciaux/3476b38d315da5e8ea7dd4971d77a25c to your computer and use it in GitHub Desktop.
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