Created
April 17, 2019 14:56
-
-
Save johnnykoo84/f85bc6f4e969d8814f382019f864de30 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
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