We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 972639e commit f0befbdCopy full SHA for f0befbd
src/parser.ts
@@ -419,7 +419,7 @@ export class Parser {
419
// Case for finding components passed in as props e.g. <Route component={App} />
420
} else if (
421
astTokens[i].type.label === 'jsxName' &&
422
- (astTokens[i].value === 'component' ||
+ (astTokens[i].value === 'Component' ||
423
astTokens[i].value === 'children') &&
424
importsObj[astTokens[i + 3].value]
425
) {
0 commit comments