Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

react hook 중복사용 에러 #163

Discussion options

You must be logged in to vote

hook안에서 rendering code가 담겨있어서 더 그런것 같습니다.
rendering code는 메인 컴포넌트 함수의 return에 다 몰아주시고, 그곳까지 로직을 끌고오셔야합니다.
로직을 계산하는건 useMemo/useState 안에서 진행하시구요.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@Eomhyunjun
Comment options

Comment options

You must be logged in to vote
3 replies
@minhoryang
Comment options

@minhoryang
Comment options

@Eomhyunjun
Comment options

Answer selected by Eomhyunjun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend 프론트엔드 mentoring 멘토링
3 participants