@rcp/util.iselemof
v2.0.0
Published
The utility determinating the input is element of the component class
Readme
@rcp/util.iselemof
The utility for determinate the input is element of the component class
Installation
npm install @rcp/util.iselemof
# or use yarn
yarn add @rcp/util.iselemofUsage
import isElementOf from '@rcp/util.iselemof'
class Comp extends React.Component {}
isElementOf(Comp)(<Comp />) // trueAPI
isElementOf
Determinate the input is element of the component class
Parameters
ComponentReact.ComponentType
Related
- @rcp/util.iscompclass - The utility for checking react component class
Authors
This library is written and maintained by imcuttle, [email protected].
License
MIT
