Browse Source

Update 05-reusable-components.md

`any` also seems to accept primitive values, not only objects. And since we already have `React.PropType.object`, the description was confusing.
main
Felix Kling 11 years ago
parent
commit
bf4966f729
  1. 2
      docs/05-reusable-components.md

2
docs/05-reusable-components.md

@ -61,7 +61,7 @@ React.createClass({
// shown if the prop isn't provided.
requiredFunc: React.PropTypes.func.isRequired,
// An object of any kind
// A value of any data type
requiredAny: React.PropTypes.any.isRequired,
// You can also specify a custom validator.

Loading…
Cancel
Save