Files
react/compiler/crates/react_hermes_parser/tests/fixtures/lambda-mutated-ref-non-reactive.js
2024-04-02 16:49:31 -07:00

9 lines
140 B
JavaScript

function f(a) {
let x;
(() => {
x = {};
})();
// this is not reactive on `x` as `x` is never reactive
return <div x={x} />;
}