UNPKG

@winglet/react-utils

Version:

React utility library providing custom hooks, higher-order components (HOCs), and utility functions to enhance React application development with improved reusability and functionality

6 lines (4 loc) 178 B
const isClassComponent = (component) => !!(typeof component === 'function' && component.prototype && component.prototype.isReactComponent); export { isClassComponent };