Kind: Class
Source: atloria-monorepo/packages/doc-automation/src/v2/stages/stage-01-parse/detectors/react-detector.ts
React Detector
Methods
| Method | Signature | Returns |
|---|---|---|
detect | detect(entities: Entity[]) | DetectedReactComponent[] |
getComponentSummary | getComponentSummary(component: DetectedReactComponent) | string |
Where it refuses work
ReactDetectorstops the work with an early return when!/^[A-Z]/.test(name).ReactDetectorstops the work with an early return when/class\s+\w+\s+extends\s+(?:React\.)?Component/.test(code).ReactDetectorstops the work with an early return whenfcMatch.ReactDetectorstops the work with an early return whenpropsMatch.ReactDetectorstops the work with an early return whenfuncPropsMatch.ReactDetectorstops the work with an early return whenarrowPropsMatch.
Was this page helpful?