Skip to content

Commit

Permalink
Merge pull request reduxjs#1094 from mjethani/doc-fix-3
Browse files Browse the repository at this point in the history
Specify shape of post elements
  • Loading branch information
ellbee committed Dec 3, 2015
2 parents 08dcaaa + 7e38ce1 commit 8eed7ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/advanced/ExampleRedditAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,8 @@ export default class Posts extends Component {
}

Posts.propTypes = {
posts: PropTypes.array.isRequired
posts: PropTypes.arrayOf(PropTypes.shape({
title: PropTypes.string.isRequired
}).isRequired).isRequired
}
```

0 comments on commit 8eed7ed

Please sign in to comment.