react-template icon indicating copy to clipboard operation
react-template copied to clipboard

'React' must be in scope when using JSX

Open MiXeR54 opened this issue 2 years ago • 1 comments

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

MiXeR54 avatar Apr 21 '23 12:04 MiXeR54

Will fix, thanks

4erkashin avatar Apr 21 '23 14:04 4erkashin