mirror of
https://github.com/facebook/react.git
synced 2026-02-26 07:55:55 +00:00
11 lines
176 B
JavaScript
11 lines
176 B
JavaScript
// x's mutable range should extend to `mutate(y)`
|
|
|
|
function Component(props) {
|
|
let x = [42, {}];
|
|
const idx = foo(props.b);
|
|
let y = x.at(idx);
|
|
mutate(y);
|
|
|
|
return x;
|
|
}
|