Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

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

Open
MiXeR54 opened this issue Apr 21, 2023 · 1 comment
Open

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

MiXeR54 opened this issue Apr 21, 2023 · 1 comment

Comments

@MiXeR54
Copy link
Contributor

MiXeR54 commented Apr 21, 2023

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

@4erkashin
Copy link
Owner

Will fix, thanks

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

2 participants