Files
react/compiler/crates/react_hermes_parser/tests/fixtures/capturing-function-member-expr-arguments.js
2024-04-02 16:49:31 -07:00

11 lines
162 B
JavaScript

function Foo(props) {
const onFoo = useCallback(
(reason) => {
log(props.router.location);
},
[props.router.location]
);
return onFoo;
}