A React js e-commerce website

FakeShop

A React Js e-commerce website. It includes two pages, the homepage to display the list of products and page 2 to display the details of the selected product.

Tech Stack

  1. HTML
  2. CSS
  3. JavaScript

Frameworks and Libraries

  1. React
  2. Bootsrap
  3. Font-Awesome

API’s

Get all products

fetch('https://fakestoreapi.com/products')
            .then(res=>res.json())
            .then(json=>console.log(json))

Get a single product

fetch('https://fakestoreapi.com/products/1')
            .then(res=>res.json())
            .then(json=>console.log(json))

GitHub

View Github