Use babel to compile only jsx syntax, not polyfill other syntax?

I just want to use babel to change jsx to js. The syntax of other grammars (arrow function, spread) is not polyfill.

.babelrc
{
  "presets": [
    "react"
  ]
}

in this way, configuration compilation will report an error that does not recognize the arrow function, spread.
, but if you add env,stage, it will polyfill.
how to compile only jsx? without reporting an error?

Apr.01,2021
Menu