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

5 lines (3 loc) 179 B
const isFunctionComponent = (component) => typeof component === 'function' && !(component.prototype && component.prototype.isReactComponent); export { isFunctionComponent };