-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[6팀 김혜연] [Chapter 1-3] React, Beyond the Basics #52
Open
Anne-Hyeyeon
wants to merge
18
commits into
hanghae-plus:main
Choose a base branch
from
Anne-Hyeyeon:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
과제 체크포인트
기본과제
심화 과제
과제 셀프회고
기술적 성장
return 값이 함수냐 일반값이냐의 차이에만 집중했었는데, 내부적으로 deps 배열을 어떤 로직으로 비교하는지도 중요하다는 점을 다시 학습함. (deps 배열이 변경되었다고 판단되면, useMemo는 memoized 값을 새로 계산하고, useCallback은 memoized 함수를 새로 생성하게 된다.)
기존에 많이 사용해본 React.memo를 직접 구현해보니, 내부에서 단순히 비교 함수만 잘 넘겨주면 된다는 사실을 깨달음.
코드 품질
학습 효과 분석
실제로 여러 컴포넌트가 복잡한 상호작용을 할 때, useCallback, useMemo가 오히려 불필요하게 쓰이면 성능 저하가 생길 수도 있음. 언제 사용해야 하고, 언제 피해야 하는지 실제 사례 중심으로 더 공부가 필요.
과제 피드백
리뷰 받고 싶은 내용