1 contributor
Like
Install is-component-of-type as a package?
Copied
npm i @bit/tomlandau.belle.utils.is-component-of-type
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
chevron_left
chevron_right
utils/isComponentOfType (
classType,
reactElement
) Returns true if the provided element is a component of the provided type.
Example
Arguments
classType
{ReactElement class} - the class of a React Element
reactElement
{ReactElement} - any React Element (not a real DOM node)