Simple React SPA (webpack + babel)
Steps to build a simple SPA App, from scratch, using React, Babel, and Webpack.
Example app will be a Bookstore App
.
1º Step : Initial setup
mkdir bookstore && cd $_
yarn init
Some questions and a new package.json
after that…
yarn add -D \
webpack webpack-cli \
babel-loader @babel/core @babel/preset-env
touch .gitignore webpack.config.js .babelrc
echo "node_modules/" >> .gitignore