Replies: 1 comment
-
|
조금씩 같이 해보면 좋겠네요 멘토링떄 공유드리겠습니다 🤡 |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
useState 는 어떤기능을 할까 ? 알아야 구현하제
1. 초기값 설정
2. 상태 업데이트
3. 불변성 비교
Object.is() 알고리즘으로 이전 값과 비교
같은 값(주소)이면 리렌더링 스킵
4. 클로저 활용
각 훅 호출마다 고유한 인덱스 유지
렌더링 간 상태 보존
5. 배치 업데이트
Beta Was this translation helpful? Give feedback.
All reactions