[Compiler]: Using for
loop for array of strings
#30627
Labels
Component: Optimizing Compiler
Status: Unconfirmed
A potential issue that we haven't yet confirmed as a bug
Type: Bug
What kind of issue is this?
Link to repro
react/compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Program.ts
Line 266 in 9eb288e
Repro steps
Hello @gsathya ,
I was wondering if the
for ... in
was intended instead offor ... of
.I think
for ... of
is more recommended for array of strings (Array<string>
) like in this case.Thanks!
How often does this bug happen?
Every time
What version of React are you using?
18.3.1
The text was updated successfully, but these errors were encountered: