Skip to content

Instantly share code, notes, and snippets.

@tomchentw
Last active August 29, 2015 14:27
Show Gist options
  • Save tomchentw/a45f2d7204c7581f8981 to your computer and use it in GitHub Desktop.
Save tomchentw/a45f2d7204c7581f8981 to your computer and use it in GitHub Desktop.
Redux-Universal - Code Sections - 7
// 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