Skip to content

lint: react/rule-of-hooks can not report error in renderProps correctly #17961

@ChangeHow

Description

@ChangeHow

rule of hooks can not report custom hooks inside renderProps. You can reproduce in this repo(https://github.com/ChangeHow/react-hooks-test/blob/main/src/App.jsx), and I also config a eslint react-hooks plugin for comparasion.

  • work well in conditional hooks
Image
  • not work in renderProps
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions