How santhosh-2906/flipkart-clone works
This React storefront presents a product catalog, lets shoppers add and remove items in a cart, and displays a calculated subtotal at checkout. The main path is catalog browsing → add to cart → checkout review and subtotal. Cart state is held in React context and updated by a reducer. The README also documents responsive presentation, router navigation, and a custom not-found page. Relationships are based on the shown component calls, reducer setup, and README; no backend or payment processing is evidenced.
Main entry points: StateProvider.jsx Context Provider · App.jsx App Router · Checkout.jsx Cart Review · main.jsx React Entry
Components 12
Storefront UI
- App Router
src/App.jsx - Product Catalog
src/components/Home.jsx - Product Card
src/components/Product.jsx - Navigation Bar
src/components/Navbar.jsx - Not Found Page
src/components/NotFound.jsx
Cart and Checkout
- Cart Review
src/components/Checkout.jsx - Cart Item
src/components/CheckoutProduct.jsx - Subtotal
src/components/Subtotal.jsx
Cart State
- Context Provider
src/StateProvider.jsx - Cart Reducer
src/Reducer.js - React Entry
src/main.jsx
Other components
- Shopper
Connections 16
- Shopper → App Router: uses storefront
README.md - App Router → Navigation Bar: renders
src/App.jsx - App Router → Product Catalog: routes to
src/App.jsx - App Router → Cart Review: routes to
src/App.jsx - App Router → Not Found Page: routes to
src/App.jsx - Product Catalog → Product Card: renders
src/components/Home.jsx - Product Card → Context Provider: reads and dispatches
src/components/Product.jsx - Navigation Bar → Context Provider: reads cart count
src/components/Navbar.jsx - Cart Review → Context Provider: reads cart
src/components/Checkout.jsx - Cart Review → Cart Item: renders
src/components/Checkout.jsx - Cart Review → Subtotal: renders
src/components/Checkout.jsx - Cart Item → Context Provider: dispatches removal
src/components/CheckoutProduct.jsx - Subtotal → Context Provider: reads cart total
src/components/Subtotal.jsx - React Entry → Context Provider: mounts
src/main.jsx - React Entry → Cart Reducer: configures
src/main.jsx - Context Provider → Cart Reducer: runs
src/StateProvider.jsx