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.
Description
ContextAPI를 활용하여 SignForm 컴포넌트를 리팩토링 했습니다.
Form은 하위에 많은 컴포넌트들을 가지고 있습니다.
합성 컴포넌트를 활용하면 조금 더 컴포넌트 내부가 잘 보이고, 기능도 한 눈에 예측가능하다 생각했습니다.
아래는 리팩토링 후 페이지 컴포넌트의 컴포넌트 구조입니다.
추가 리팩토링은...
안 쪽의 Email태그와 Password 컴포넌트가 중복되는 로직이 많습니다.
이걸 줄이려면 Props를 활용하면 좋을 듯 싶습니다!