Last active
August 29, 2015 14:27
-
-
Save tomchentw/a45f2d7204c7581f8981 to your computer and use it in GitHub Desktop.
Redux-Universal - Code Sections - 7
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
// http://git.io/v3OsP | |
render () { | |
// access forum and posts from this.props (it’s a dumb component!) | |
const {params, forum, posts} = this.props; | |
return ( | |
<div> | |
<header className="forum__header"> | |
<h2 className="forum__title">{forum.get("title")}</h2> | |
</header> | |
<PostList | |
forumId={params.forumId} | |
posts={posts} | |
/> | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment