---
# System prepended metadata

title: React Amazon clone
tags: [React]

---

# React Amazon clone
###### tags: `React`
* Install new react app:
    * npx create-react-app amazon-clone
* Remove app.test.js, logo, setuptests.js
* Remove app.css content add 
    * `*{
    margin:0px;
    padding: 0px
    }`
* Install firebase:
    * sudo npm i firebase-tools
    * sudo npm i firebase
* Install React router:
    * sudo npm install react-router-dom
* Wrap all content with Router and import react touter:
* Build navbar
    * npm install @material-ui/core
* build banner
* build the product component
* react context api
* setup add to basket button
* checkout page
* subtotal component
* login page
* logout
* deploy



