analyze_react_component
Analyzes React components to extract typed props, hooks with arguments, consumed contexts, custom hooks, early returns, and memo/forwardRef usage.
Instructions
In-depth analysis of a React component: typed props, hooks with arguments, consumed contexts, custom hooks, early returns and memo/forwardRef. Deterministic (ts-morph).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Relative path to the component .tsx/.jsx file | |
| name | Yes | Name or path of the loaded project |