Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hooks can only be called inside of the body of a function component #1

Open
H-Genie opened this issue Dec 30, 2022 · 0 comments
Open

Comments

@H-Genie
Copy link

H-Genie commented Dec 30, 2022

Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:

카운터를 삽입하고자 하는 컴포넌트에 직접 삽입을 해도
제시해주신 방법대로 별도의 컴포넌트로 빼도 위와같은 이슈가 발생을 하네요

제 개발환경은 리액트 18.2 입니다

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

No branches or pull requests

1 participant