@samitouri / QOS-React-2 / commits / 67c5d76321

Add missing commas in propTypes docs

Ben Alpert committed Feb 13, 2014 at 23:19 UTC 67c5d76321ad04058003ede164eca04817be5bd0
1 file changed +4 -4
docs/docs/05-reusable-components.md
+4 -4
@@ -41,10 +41,10 @@ React.createClass({
41 optionalUnion: React.PropTypes.oneOfType([
42 React.PropTypes.string,
43 React.PropTypes.number
44 - ])
44 + ]),
45
46 // An array of a certain type
47 - optionalArrayOf: React.PropTypes.arrayOf(React.PropTypes.number)
47 + optionalArrayOf: React.PropTypes.arrayOf(React.PropTypes.number),
48
49 // An object taking on a particular shape
50 optionalObjectWithShape: React.PropTypes.shape({
@@ -58,10 +58,10 @@ React.createClass({
58
59 // You can chain any of the above with isRequired to make sure a warning is
60 // shown if the prop isn't provided.
61 - requiredFunc: React.PropTypes.func.isRequired
61 + requiredFunc: React.PropTypes.func.isRequired,
62
63 // An object of any kind
64 - requiredAny: React.PropTypes.any.isRequired
64 + requiredAny: React.PropTypes.any.isRequired,
65
66 // You can also specify a custom validator.
67 customProp: function(props, propName, componentName) {