Files
react/compiler/crates/react_hermes_parser/tests/fixtures/const-propagation-into-function-expression-global.js
2024-04-02 16:49:31 -07:00

9 lines
156 B
JavaScript

function foo() {
const isX = GLOBAL_IS_X;
const getJSX = () => {
return <Child x={isX}></Child>;
};
const result = getJSX();
return result;
}