Files
codeql/javascript/ql/test/library-tests/frameworks/ReactJS/useHigherOrderComponent.jsx
2025-06-23 16:03:33 +02:00

19 lines
539 B
JavaScript

import SomeComponent from './higherOrderComponent';
import { lazy } from 'react';
function foo() {
return <SomeComponent color="red"/> // $ getACandidatePropsValue
}
const LazyLoadedComponent = lazy(() => import('./higherOrderComponent'));
function bar() {
return <LazyLoadedComponent color="lazy"/> // $ getACandidatePropsValue
}
const LazyLoadedComponent2 = lazy(() => import('./exportedComponent').then(m => m.MyComponent));
function barz() {
return <LazyLoadedComponent2 color="lazy2"/> // $ getACandidatePropsValue
}