Kind: Function
Source: atloria-monorepo/libs/parser-core/src/utils/ast-helpers.ts
Check if a class extends React.Component or React.PureComponent
Signature
tsfunction isReactClassComponent(path: NodePath<t.ClassDeclaration>): boolean
Parameters
| Name | Type |
|---|---|
path | NodePath<t.ClassDeclaration> |
Returns: boolean
Was this page helpful?