Wed, 8 May 2019 9:09 am
if you are only using babel to transform jsx to js, this is what you need :

installation
install babel-cli as global (optional) sudo npm install -g babel-cli
install babel-preset-es2015 (optional. if your code using es6 standard) npm install babel-preset-es2015
install babel-preset-react (required)

configuration
in your root of project, add this file .babelrc and write this to it
{
  "presets": ["es2015", "react"]
}
or
{
  "presets": ["react"]
}

run
babel source_dir -d target_dir

https://stackoverflow.com/questions/43111618/transform-jsx-to-js-using-babel

#babel
#jsx-to-js
184
Additional Info: