Files
redux/examples/async/components/Posts.js
2015-10-26 22:06:40 +00:00

18 lines
314 B
JavaScript

import React, { PropTypes, Component } from 'react'
export default class Posts extends Component {
render() {
return (
<ul>
{this.props.posts.map((post, i) =>
<li key={i}>{post.title}</li>
)}
</ul>
)
}
}
Posts.propTypes = {
posts: PropTypes.array.isRequired
}