Skip to content

Instantly share code, notes, and snippets.

@johnnykoo84
Created April 17, 2019 14:56
Show Gist options
  • Save johnnykoo84/f85bc6f4e969d8814f382019f864de30 to your computer and use it in GitHub Desktop.
Save johnnykoo84/f85bc6f4e969d8814f382019f864de30 to your computer and use it in GitHub Desktop.
render() {
const { currentArticles, currentCategory } = this.state;
return (
<div className="App">
<Tabs
categories={this.categories}
currentCategory={currentCategory}
changeCurrentCategory={this.changeCurrentCategory}
/>
<Articles articles={currentArticles} />
<Button loadMoreArticles={this.loadMoreArticles} />
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment