@babel/plugin-syntax-jsx
note
Syntax only
Using this plugin directly only enables Babel to parse this syntax. If you want to transform JSX syntax then use the transform-react-jsx plugin or react preset to both parse and transform this syntax.
Installation
- npm
- Yarn
- pnpm
npm install --save-dev @babel/plugin-syntax-jsx
yarn add --dev @babel/plugin-syntax-jsx
pnpm add --save-dev @babel/plugin-syntax-jsx
Usage
With a configuration file (Recommended)
babel.config.json
{
"plugins": ["@babel/plugin-syntax-jsx"]
}