Files
react/compiler/crates/react_hermes_parser/tests/fixtures/nested-scopes-hook-call.js
2024-04-02 16:49:31 -07:00

8 lines
113 B
JavaScript

function component(props) {
let x = [];
let y = [];
y.push(useHook(props.foo));
x.push(y);
return x;
}