Omlet vs. React Scanner
Component detection
In React Scanner, components with zero usages and Components used out of JSX expressions are not detected
function Profile({ accountType }) {
const components = {
userProfile: UserProfile,
companyProfile: CompanyProfile
};
const Component = components[accountType]
return (
<>
...
<Component>...</Component>
</>
);
}Dependencies among components defined in the same module are not detected
Usages are reported at the file level, so dependencies of components defined in the same module are not visible
Import resolution
react-scanner does not follow exports to find the source component for imports.
Alias resolution
Missing in Omlet
Last updated