survivejs / react-book

From apprentice to master (CC BY-NC-ND)
https://survivejs.com/react/introduction/
2.02k stars 366 forks source link

Changed `const` to `let` in es6 Array.map example #445

Closed skarlinski closed 6 years ago

skarlinski commented 6 years ago

Both the counter and the result array were constants, which caused a syntax error as they tried to mutate.

bebraw commented 6 years ago

Thanks a lot!