Replies: 1 comment
-
We find that it provides a false sense of security and causes more churn in PRs.
You can see https://www.reddit.com/r/javascript/comments/cfaayg/askjs_lets_debate_about_this_article_const_vs_let/ for more information about this whole debate. We realize this is an opinion, and not everyone will agree with what we've decided to do in our codebase. Indeed, contributors frequently add |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Let is used across the source even though variables don't require reassignment. What's the reason of using let instead of const?
https://github.com/adobe/react-spectrum/blob/main/packages/react-aria-components/src/ColorField.tsx
https://github.com/adobe/react-spectrum/blob/main/packages/react-aria-components/src/Button.tsx
Beta Was this translation helpful? Give feedback.
All reactions