UNPKG
@redhare/lowcode-types
Version:
latest (1.0.5)
redharebeta (1.3.0-redharebeta.2)
1.3.0-redharebeta.2
1.3.0-redharebeta.1
1.3.0-redhare.3
1.3.0-redhare.2
1.3.0-redhare.0
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.0.1
Types for Ali lowCode engine
github.com/alibaba/lowcode-engine/
@redhare/lowcode-types
/
es
/
deprecated
/
isReactClass.js
8 lines
(7 loc)
•
257 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
import
{
Component
}
from
'react'
;
/** *
@deprecated
use same function from '
@redhare
/lowcode-utils' instead */
export
function
isReactClass
(
obj
) {
return
obj && obj.
prototype
&& (obj.
prototype
.
isReactComponent
|| obj.
prototype
instanceof
Component
); }