Skip to content

Commit

Permalink
Replace var with const
Browse files Browse the repository at this point in the history
Hey there :) I found this small issue.

Replace `var` with `const` for block-scope variable declaration following the standard introduced by ES2015.
  • Loading branch information
cesarkohl committed May 8, 2023
1 parent b20d5f2 commit 9198d33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bench/rendering/pages/stateless-big.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default () => {
}

const items = () => {
var out = new Array(10000)
const out = new Array(10000)
for (let i = 0; i < out.length; i++) {
out[i] = <li key={i}>This is row {i + 1}</li>
}
Expand Down

0 comments on commit 9198d33

Please sign in to comment.