Code & Deploy
siGit Code
Git Hosting
Toggle menu
Code
Code Review
Models
Repos
Sign in
Sign in
@samitouri
/
QOS-React-2
QOS-React-2
/
compiler
/
packages
/
babel-plugin-react-compiler
/
src
/
__tests__
/
fixtures
/
compiler
/
capturing-function-member-expr-arguments.js
Code
Commits
Issues
Pulls
Sessions
CI/CD
main
main
js
10 lines
160 Bytes
Copy permalink
Copy
Raw
1
function
Foo
(
props
)
{
2
const
onFoo
=
useCallback
(
3
reason
=>
{
4
log
(
props
.
router
.
location
);
5
},
6
[
props
.
router
.
location
]
7
);
8
9
return
onFoo
;
10
}