MCPcopy Create free account
hub / github.com/reactjs/react-rails / invalidValidatorError

Function invalidValidatorError

lib/assets/react-source/development/react.js:30805–30810  ·  view source on GitHub ↗
(componentName, location, propFullName, key, type)

Source from the content-addressed store, hash-verified

30803 }
30804
30805 function invalidValidatorError(componentName, location, propFullName, key, type) {
30806 return new PropTypeError(
30807 (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
30808 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
30809 );
30810 }
30811
30812 function createShapeTypeChecker(shapeTypes) {
30813 function validate(props, propName, componentName, location, propFullName) {

Callers 1

validateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected