From 215265ce7ed3fec7e415ab44411d2f2c905cdccf Mon Sep 17 00:00:00 2001 From: Troy Rhinehart Date: Thu, 3 Jan 2019 12:09:17 -0700 Subject: [PATCH] [Docs] Fix typo in example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index debcdb4..e828d0c 100644 --- a/README.md +++ b/README.md @@ -278,7 +278,7 @@ const props = { // Let's say your component is called 'MyComponent' // Works with standalone PropTypes -PropTypes.checkPropTypes(myPropTypes, props, 'prop', 'MyComponent'); +PropTypes.checkPropTypes(myPropTypes, props, 'age', 'MyComponent'); // This will warn as follows: // Warning: Failed prop type: Invalid prop `age` of type `string` supplied to // `MyComponent`, expected `number`.