Reference

collectJsxComponentRootNames

Collects root component names referenced by JSX elements in a module.

Signature

function collectJsxComponentRootNames(input: { code: string; filename?: string }): string[]