Skip to content

Conversation

@Doozuu
Copy link
Contributor

@Doozuu Doozuu commented Apr 8, 2023

🔗 구현 기능

  • reactstrap의 nav bar, list group, modal 기능을 활용해 보았습니다.
  • useState를 이용해 nav bar의 toggle과 modal의 toggle을 제어했습니다.

스크린샷 2023-04-08 오후 6 54 44

스크린샷 2023-04-08 오후 6 54 56

@Doozuu Doozuu self-assigned this Apr 8, 2023
@Solarthenomad
Copy link
Member

const [ModalOpen, setModalOpen] = useState(false);를 쓰시니 훨씬 코드가 간편해진 것 같습니다. constructor을 사용하여 초기 설정을 하는 것보다 훨씬 코드의 가독성도 좋고, 메모리 사용량이 가벼워 질 것 같네요! 저는 평상시에 constructor -> ComponentDidMount -> render을 통해 구현했는데, 주희님의 간결한 코드를 보니 사용욕구가 늘어나네요😊

@Doozuu Doozuu closed this Apr 10, 2023
@Doozuu Doozuu reopened this Apr 10, 2023
@Doozuu
Copy link
Contributor Author

Doozuu commented Apr 10, 2023

const [ModalOpen, setModalOpen] = useState(false);를 쓰시니 훨씬 코드가 간편해진 것 같습니다. constructor을 사용하여 초기 설정을 하는 것보다 훨씬 코드의 가독성도 좋고, 메모리 사용량이 가벼워 질 것 같네요! 저는 평상시에 constructor -> ComponentDidMount -> render을 통해 구현했는데, 주희님의 간결한 코드를 보니 사용욕구가 늘어나네요😊

클래스 방식이 복잡해서 hook 사용하시면 훨씬 더 쉽게 잘하실 것 같아요! 추천합니닷..ㅎㅎ👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants