Full-Stack React Projects
上QQ阅读APP看书,第一时间看更新

Babel

Create a .babelrc file in your project folder and add the following JSON with presets and plugins specified.

mern-simplesetup/.babelrc:

{
"presets": [
"env",
"stage-2"
"react"
],
"plugins": [
"react-hot-loader/babel"
]
}

The react-hot-loader/babel plugin is required by the react-hot-loader module to compile React components.