* Inject `__source` and `__self` in JSX elements earlier
This fixes an issue where `this` was not correct inside arrow functions, similar to
906f8be24d
* Add test
* Remove try-catch
* Update error
* Update fixtures
* Update windows fixtures
@babel/plugin-transform-react-jsx
Turn JSX into React function calls
See our website @babel/plugin-transform-react-jsx for more information.
Install
Using npm:
npm install --save-dev @babel/plugin-transform-react-jsx
or using yarn:
yarn add @babel/plugin-transform-react-jsx --dev