Added example of objectOf usage in documentation.

This commit is contained in:
Mathieu M-Gosselin committed 2014-06-17 23:43:25 -04:00
1 parent 7f757347bc
commit 7fefab5946
1 file changed
+3
+3
View File
@@ -51,6 +51,9 @@ React.createClass({
// An array of a certain type
optionalArrayOf: React.PropTypes.arrayOf(React.PropTypes.number),
// An object with property values of a certain type
optionalObjectOf: React.PropTypes.objectOf(React.PropTypes.number),
// An object taking on a particular shape
optionalObjectWithShape: React.PropTypes.shape({
color: React.PropTypes.string,