MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / shim

Function shim

code/communication/public/app.js:1058–1069  ·  view source on GitHub ↗
(props, propName, componentName, location, propFullName, secret)

Source from the content-addressed store, hash-verified

1056
1057module.exports = function() {
1058 function shim(props, propName, componentName, location, propFullName, secret) {
1059 if (secret === ReactPropTypesSecret) {
1060 // It is still safe when called from React.
1061 return;
1062 }
1063 invariant(
1064 false,
1065 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1066 'Use PropTypes.checkPropTypes() to call them. ' +
1067 'Read more at http://fb.me/use-check-prop-types'
1068 );
1069 };
1070 shim.isRequired = shim;
1071 function getShim() {
1072 return shim;

Callers

nothing calls this directly

Calls 1

invariantFunction · 0.70

Tested by

no test coverage detected