[2단계 - Virtual DOM 만들기] 지그(송지은) 미션 제출합니다. #23
Merged
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.
1단계에서 이미
useState
를 구현했어서, 2단계 미션에서는 기존의useState
를 Proxy로 받아오도록 수정해보았습니다.Counter
컴포넌트에서 더 이상getState()
로 직접 호출할 필요는 없지만,state
에 Proxy를 적용해주기 위해state
를 객체로 만들다보니state.value
와 같이 접근해야 하는 문제(?)는 있습니다그래도 새로운 개념을 적용시켜본 것에 의의를... ㅎㅅㅎ
앱은 지난번과 같이 여기서 확인 가능합니다!