troch / react-is-class

A function to check whether a component is a class or a functional component

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-is-class

A function to check whether a component is a class or a functional component. It can be useful to "squash" a component wrapped with a higher-order component and save a react component instance.

import isClassComponent, { isPureClassComponent } from 'react-is-class';

Taken from recompose from Andrew Clark.

About

A function to check whether a component is a class or a functional component

License:MIT License


Languages

Language:JavaScript 100.0%