hen you install <a href="https://nodejs.org/en/">Node.js</a>. Once NPM is installed, create a project folder and run this command:</p>
<pre><code class="lang-bash">npm init -y
</code></pre>
<p>If you want to use Webpack and Babel together, <a href="#using-babel-with-webpack">skip to the section below</a>.</p>
<p>To install Babel as a standalone tool, use this command:</p>
<pre><code class="lang-bash">npm install babel-cli babel-preset-es2015 babel-plugin-transform-react-jsx --save-dev
</code></pre>
<p>Creat