[6팀 박창수] Chapter 2-2. 나만의 React 만들기#47
Open
changsu1993 wants to merge 7 commits intohanghae-plus:easyfrom
Open
[6팀 박창수] Chapter 2-2. 나만의 React 만들기#47changsu1993 wants to merge 7 commits intohanghae-plus:easyfrom
changsu1993 wants to merge 7 commits intohanghae-plus:easyfrom
Conversation
프로젝트 구조 및 개발 가이드 문서 추가 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
- createVNode: JSX를 vNode 객체로 변환, children 평탄화 및 falsy 값 필터링 - normalizeVNode: vNode 정규화, 함수형 컴포넌트 처리 - createElement: vNode를 실제 DOM 요소로 변환 - eventManager: 이벤트 위임 방식으로 이벤트 처리, 중복 등록 방지 - renderElement: vNode를 container에 렌더링 기본 테스트 48개 전부 통과 완료 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
GitHub Pages 배포를 위한 404.html 추가 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
- updateElement: 변경된 부분만 효율적으로 업데이트 - updateAttributes: 속성 추가/제거/업데이트 처리 - renderElement: 최초 렌더링과 리렌더링 분리 - 불리언 속성을 property로 직접 업데이트하여 DOM과 분리 - 자식 노드 추가/제거를 역순으로 처리하여 인덱스 문제 해결 심화 테스트 20개 전부 통과 완료 기본 테스트 48개 유지 E2E 테스트 18개 통과 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
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://changsu1993.github.io/front_7th_chapter2-2/
기본과제
가상돔을 기반으로 렌더링하기
이벤트 위임
심화 과제
1) Diff 알고리즘 구현
과제 셀프회고
아하! 모먼트 (A-ha! Moment)
Virtual DOM의 핵심 개념을 직접 구현하면서 React가 내부적으로 어떻게 동작하는지 깊이 이해할 수 있었습니다. 특히:
createVNode함수 호출로 변환된다는 점심화 과제를 진행하며 가장 인상 깊었던 점은 DOM 요소의 재사용입니다. 같은 타입의 요소는 제거하고 다시 만드는 것이 아니라, 속성만 업데이트하여 재사용하는 방식이 얼마나 효율적인지 체감할 수
있었습니다.
기술적 성장
코드 품질
만족스러운 구현:
createVNode의 재귀적 children 평탄화 및 falsy 값 필터링eventManager의 중복 이벤트 등록 방지 메커니즘normalizeVNode의 함수형 컴포넌트와 일반 요소의 통합 처리updateElement의 효율적인 diff 알고리즘 (자식 노드 역순 제거로 인덱스 문제 해결)updateAttributes의 불리언 속성을 property로 직접 업데이트하는 최적화설계 결정:
학습 효과 분석
가장 큰 배움:
추가 학습 필요 영역:
실무 적용 가능성:
과제 피드백
좋았던 부분:
리뷰 받고 싶은 내용