Kind: Function
Source: atloria-monorepo/libs/parser-core/src/utils/ast-helpers.ts
Check if a function component is a React component (returns JSX)
Signature
tsfunction isReactComponent(path: NodePath<
t.FunctionDeclaration | t.ArrowFunctionExpression | t.FunctionExpression
>): boolean
Parameters
| Name | Type |
|---|---|
path | `NodePath< |
t.FunctionDeclaration | t.ArrowFunctionExpression | t.FunctionExpression
` |
Returns: boolean
Was this page helpful?