- Author : "Umesh G",
- Create React App using Webpack, Webpack Dev Server and Babel from scratch
Step 1: Create package.json file
- npm init
Step 2: Install react and react-dom
- npm i react react-dom ,
- npm i react react-scripts,
- npm install node-sass,
Step 3: Create directories and files for the project
- mkdir src public
- touch src/index.js src/App.js public/index.html
Step 4: Create a React Component src/App.js
Step 5: Create a div#root inside public/index.html
Step 6: Insert App.js component into the DOM
Step 7: Add scripts and browserslist in the package.json
Step 8: npm install
Step 9: npm start