Having to add import react from "react" for each file
i just made a new extension by git cloning my old one and just one small issue is that I have to add import react from "React" in each ,tsx file
and in tsconfig, I have to add "jsx": "react",
"compilerOptions": {
"jsx": "react",
"paths": {
"~": [
"./"
]
},
"baseUrl": "."
}
}
anyone know how to resolve this?
1 Reply
what's the react version in your
package.json
?