Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Failure in a collection #1

@drixie

Description

@drixie

I got this error while trying to use it in a loop to display multiple divs with array.map(). Any ideas on how to resolve?

React Hook "useCM" cannot be called inside a callback. React Hooks must be called in a React function component or a custom React Hook function react-hooks/rules-of-hooks

A little googling brought this up - https://reactjs.org/docs/hooks-rules.html

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