Skip to content

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

@H-Genie

Description

@H-Genie

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 입니다

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions