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

Function shim

code/styling/public/app.js:1023–1034  ·  view source on GitHub ↗
(props, propName, componentName, location, propFullName, secret)

Source from the content-addressed store, hash-verified

1021
1022module.exports = function() {
1023 function shim(props, propName, componentName, location, propFullName, secret) {
1024 if (secret === ReactPropTypesSecret) {
1025 // It is still safe when called from React.
1026 return;
1027 }
1028 invariant(
1029 false,
1030 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1031 'Use PropTypes.checkPropTypes() to call them. ' +
1032 'Read more at http://fb.me/use-check-prop-types'
1033 );
1034 };
1035 shim.isRequired = shim;
1036 function getShim() {
1037 return shim;

Callers

nothing calls this directly

Calls 1

invariantFunction · 0.70

Tested by

no test coverage detected