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

Function shim

code/one-direction-data-flow/public/app.js:896–907  ·  view source on GitHub ↗
(props, propName, componentName, location, propFullName, secret)

Source from the content-addressed store, hash-verified

894
895module.exports = function() {
896 function shim(props, propName, componentName, location, propFullName, secret) {
897 if (secret === ReactPropTypesSecret) {
898 // It is still safe when called from React.
899 return;
900 }
901 invariant(
902 false,
903 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
904 'Use PropTypes.checkPropTypes() to call them. ' +
905 'Read more at http://fb.me/use-check-prop-types'
906 );
907 };
908 shim.isRequired = shim;
909 function getShim() {
910 return shim;

Callers

nothing calls this directly

Calls 1

invariantFunction · 0.70

Tested by

no test coverage detected