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

Function shim

code/composition/public/app.js:1161–1172  ·  view source on GitHub ↗
(props, propName, componentName, location, propFullName, secret)

Source from the content-addressed store, hash-verified

1159
1160module.exports = function() {
1161 function shim(props, propName, componentName, location, propFullName, secret) {
1162 if (secret === ReactPropTypesSecret) {
1163 // It is still safe when called from React.
1164 return;
1165 }
1166 invariant(
1167 false,
1168 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1169 'Use PropTypes.checkPropTypes() to call them. ' +
1170 'Read more at http://fb.me/use-check-prop-types'
1171 );
1172 };
1173 shim.isRequired = shim;
1174 function getShim() {
1175 return shim;

Callers

nothing calls this directly

Calls 1

invariantFunction · 0.70

Tested by

no test coverage detected