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
/
allow-assigning-to-global-in-function-spread-as-jsx.js
Code
Commits
Issues
Pulls
Sessions
CI/CD
main
main
js
8 lines
231 Bytes
Copy permalink
Copy
Raw
1
// @enableNewMutationAliasingModel:false
2
function
Component
()
{
3
const
foo
=
()
=>
{
4
someGlobal
=
true
;
5
};
6
// spreading a function is weird, but it doesn't call the function so this is allowed
7
return
<
div
{...
foo
}
/>
;
8
}