How to use the inferno-component.isPrototypeOf function in inferno-component

To help you get started, we’ve selected a few inferno-component examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github zanettin / incompose / src / isClassComponent.js View on Github external
const isClassComponent = ComponentArg => Boolean(
  ComponentArg &&
  ComponentArg.prototype &&
  typeof ComponentArg.prototype.render === 'function' &&
  Component.isPrototypeOf(ComponentArg)
);

inferno-component

Inferno ES6 Component

MIT
Latest version published 3 years ago

Package Health Score

65 / 100
Full package analysis