Files
codeql/javascript/ql/test/library-tests/frameworks/ReactJS/useHigherOrderComponent.jsx
2026-02-19 11:26:44 +01:00

19 lines
557 B
JavaScript

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