Conversation
Member
|
const [ModalOpen, setModalOpen] = useState(false);를 쓰시니 훨씬 코드가 간편해진 것 같습니다. constructor을 사용하여 초기 설정을 하는 것보다 훨씬 코드의 가독성도 좋고, 메모리 사용량이 가벼워 질 것 같네요! 저는 평상시에 constructor -> ComponentDidMount -> render을 통해 구현했는데, 주희님의 간결한 코드를 보니 사용욕구가 늘어나네요😊 |
Contributor
Author
클래스 방식이 복잡해서 hook 사용하시면 훨씬 더 쉽게 잘하실 것 같아요! 추천합니닷..ㅎㅎ👍🏻 |
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.
🔗 구현 기능
nav bar,list group,modal기능을 활용해 보았습니다.