We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1470b17 commit 437fd29Copy full SHA for 437fd29
modules/PropTypes.js
@@ -3,7 +3,6 @@ import { PropTypes } from 'react'
3
const { func, object, arrayOf, oneOfType, element, shape, string } = PropTypes
4
5
export function falsy(props, propName, componentName) {
6
- /* istanbul ignore if: sanity check */
7
if (props[propName])
8
return new Error(`<${componentName}> should not have a "${propName}" prop`)
9
}
0 commit comments