Skip to content
This repository was archived by the owner on Jan 30, 2026. It is now read-only.
This repository was archived by the owner on Jan 30, 2026. It is now read-only.

'React' must be in scope when using JSX #2

Description

@MiXeR54

Describe the bug
'React' must be in scope when using JSXeslint[react/react-in-jsx-scope]

Starting with React 17, we no longer need to import React in each component.
But now ESLint is complaining about the absence of this import.

Possible fix: https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/react-in-jsx-scope.md

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