2.0.0 • Published 2 months ago

@rcp/util.iselemof v2.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
2 months ago

@rcp/util.iselemof

NPM version NPM Downloads

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.iselemof

Usage

import isElementOf from '@rcp/util.iselemof'

class Comp extends React.Component {}
isElementOf(Comp)(<Comp />) // true

API

isElementOf

Determinate the input is element of the component class

Parameters

  • Component React.ComponentType

Related

Authors

This library is written and maintained by imcuttle, moyuyc95@gmail.com.

License

MIT

2.0.0

2 months ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.5

4 years ago

1.1.3

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago