Open2
'React' must be in scope when using JSX

ルールの修正
.eslintrc.json
"rules": {
+ "react/react-in-jsx-scope": "off",
+ "react/jsx-uses-react": "off",
importの一括修正
npx codemod react/update-react-imports --target ./

Uncaught ReferenceError: React is not defined 🤔
package.json
"rescripts": [
[
"use-babel-config",
{
"plugins": [
],
"presets": [
],
[
"@babel/preset-typescript",
{
"allowNamespaces": true
}
],
+ [
+ "@babel/preset-react",
+ {
+ "runtime": "automatic"
+ }
+ ]
]
}
]
],