can anybody suggest how to remove third party warnings? https://facebook.github.io/react/warnings/dont-call-proptypes.html
i don't know how to implement and where to put code that official documentation mentioned. They take code from react-bootstrap
export default function deprecated(propType, explanation) {
return function validate(props, propName, componentName) {
if (props[propName] != null) {
const message = `"${propName}" property of
"${componentName}" has been deprecated.\n${explanation}`;
if (!warned[message]) {
warning(false, message);
warned[message] = true;
}
}
return propType(props, propName, componentName);
};
}
Please write step by step to resolve third party warnings.
Thanks