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`.