mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
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.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user