@eslint-react/core / isInsideComponentOrHook
function isInsideComponentOrHook(node: Node | undefined): boolean;Check if a given AST node is inside a React component or hook
| Parameter | Type | Description |
|---|---|---|
node |
Node | undefined |
The AST node to check |
boolean
True if the node is inside a component or hook, false otherwise