April 2020
Intermediate to advanced
716 pages
18h 55m
English
Create a .babelrc file in your project folder and add the following JSON with presets and plugins specified:
mern-simplesetup/.babelrc:
{ "presets": [ ["@babel/preset-env", { "targets": { "node": "current" } } ], "@babel/preset-react" ], "plugins": [ "react-hot-loader/babel" ]}
In this configuration, we specify that we need Babel to transpile the latest JavaScript syntax with support for code in a Node.js environment and also React/JSX code. The react-hot-loader/babel plugin is required by the react-hot-loader module to compile React components.
Read now
Unlock full access