Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const isClassComponent = ComponentArg => Boolean(
ComponentArg &&
ComponentArg.prototype &&
typeof ComponentArg.prototype.render === 'function' &&
Component.isPrototypeOf(ComponentArg)
);