[4팀 이연성] Chapter 1-3 React, Beyond the Basics #76
Open
LEEYEONSEONG wants to merge 6 commits into
Open
Conversation
This file contains hidden or 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.
과제 체크포인트
배포 링크
https://leeyeonseong.github.io/front_5th_chapter1-3
기본과제
심화 과제
과제 셀프회고
React.memo와useCallback의 적용 범위를 테스트 기반으로 구체적으로 판단할 수 있게 되었습니다.ThemeContext,UserContext,NotificationContext를 완전히 분리하여 컴포넌트 단위의 리렌더링을 제어하는 구조를 만들 수 있었습니다.theme값을 props로 전달하며 context 전파를 막는 전략을 적용해보았습니다.기술적 성장
코드 품질
App.tsx에서는 Provider만 관리하고, 실질적인 화면은AppLayout.tsx로 분리하여 역할을 명확히 나눴습니다.memo처리하였습니다.학습 효과 분석
과제 피드백
리뷰 받고 싶은 내용
theme을useTheme()로 바로 사용하지 않고 props로 전달하는 구조가 과연 최선인지 궁금합니다.AppLayout과 같은 최상위 UI 컴포넌트를memo처리하고, context를 바깥에서 props로 내려주는 방식이 맞는 방법인지??,,, 유지보수성과 확장성에 대해 조언 부탁드립니다.