Kind: Function
Source: atloria-monorepo/apps/frontend-parser/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?