Open AndrewLeedham opened 2 years ago
@michaeltaranto perhaps for JavaScript users there could be a manual option in the config to specify "known components" like babel-plugin-add-react-displayname does, so at least there is a way to manually hint sub-components?
fixes: #172
Includes all component names gathered from
staticTypes
as well as the importedcomponents
when creating hints for CodeMirror. This only fixes the sub-component issue for people usingreact-docgen-typescript
, I am not sure there is a good way to fix it for regular JavaScript users.