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.
작업 중인 PR이라면 제목에 [WIP]을 작성해주세요.
PR 목적 / 요약
Modal 컴포넌트는 Modal 내 UI 구성요소를 모아놓은 컴포넌트입니다.
ModalManager 컴포넌트는 Key-Value 형태로 Key와 Modal 컴포넌트를 매칭하여 가지고 있습니다.
currentModalState를 구독하다가 변경되면, Key로부터 Modal을 찾아 React Portal을 이용해 #popup-root로 return합니다.
ModalManamger 컴포넌트는 App.tsx에 선언되어 있습니다.
openModal, closeModal 함수를 return하는 Hook입니다.
현재 화면에 open된 모달의 Key와 props를 객체의 형태로 가지고 있는 Recoil Atom입니다.
Modal 컴포넌트의 렌더링은 다음과 같은 과정으로 이루어집니다.
관련 이슈
리뷰받고 싶은 부분 설명
혹시 몰라서 props를 넣어놓았는데 필요할지 의문입니다.
특이사항
없음