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

Function shim

code/higher-order-components/public/app.js:1017–1028  ·  view source on GitHub ↗
(props, propName, componentName, location, propFullName, secret)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

invariantFunction · 0.70

Tested by

no test coverage detected