Support for the experimental syntax 'jsx' isn't currently enabled Support for the experimental syntax 'jsx' isn't currently enabled reactjs reactjs

Support for the experimental syntax 'jsx' isn't currently enabled


Just create a .babelrc file and add:

{  "presets": ["@babel/preset-env", "@babel/preset-react"]}


In my case, Creating "babel.config.js" file with the following content worked.

module.exports = {    presets:[        "@babel/preset-env",        "@babel/preset-react"    ]}


2021

I fixed it adding

"jsx": "react-jsx"

to my "compilerOptions" on my tsconfig.json file