What is the syntax JSX: that is compliant with the XML standard js syntax. (Html syntax relative to a lot of rigor)
How to enable JSX grammar?
Babel install plug-ins:
run:
Installation can identify the syntax conversion JSX package:
run:
Add .babelrc configuration file in the root directory of the project:
webpack.config.js file, add configuration items babel-loader of:
The main documents:
package.json: (babel-Loader must be 7.x version)
webpack.config.js:
.babelrc
index.js:
index.html: