안녕하세요 왜 리액트 훅쓸때 let 대신 const 쓰는건가요? #171
skibidi-camera
started this conversation in
Open Forum
Replies: 2 comments
-
안녕하세요, @skibidi-camera 님!
먼저
따라서 상태값은 즉 일반적인 경우에는 상태값과 업데이트 함수를 재할당할 필요가 없으므로, |
Beta Was this translation helpful? Give feedback.
0 replies
-
위 글에 리액트 훅에서 const를 사용하는 이유가 자세히 나와있어요! |
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.
-
안녕하세요 현제 코딩학원에서 리액트를 배우고 있는데요
선생님도 그렇고 책도 그렇고 다 useState를 쓸 때 const를 사용하던데요
왜 let을 안쓰는걸까요? 그러면 값 바꾸기도 더 쉬울 것 같아서요. 학원 숙제도 let으로 해봤는데 잘 됬어요.
https://github.com/skibidi-camera/HelloWorld/blob/main/myapp.html
선생님도 모른다고해서 찾아보다가 여기에 여쭈어보아요
Beta Was this translation helpful? Give feedback.
All reactions