mirror of
https://github.com/facebook/react.git
synced 2026-02-26 04:04:59 +00:00
10 lines
187 B
JavaScript
10 lines
187 B
JavaScript
function Component(props) {
|
|
const x = foo(props.x);
|
|
const fn = function () {
|
|
const arr = [...bar(props)];
|
|
return arr.at(x);
|
|
};
|
|
const fnResult = fn();
|
|
return fnResult;
|
|
}
|