How vihang2k23/shopping-cart works
Project type and purpose
• This is a front-end single-page application built with React and Redux.
• It implements a “Redux Shopping Cart” where users browse products (static data), add/remove them to a cart, and view cart contents.
File structure
• Top-level “public” folder: static assets (index.html, images, manifest, redirects).
• “src” folder: all React code.
• App.js is the root component.
• “components” holds reusable UI pieces (Header, Footer, ProductsCard, Cart).
• “pages” holds route-level or view components (Home).
• “data/productsData.js” contains the hard-coded product catalog.
• “store” contains Redux setup: store.js and cartSlice.js.
README for additional insights
• Confirms standard Create-React-App scripts (start, test, build).
• No back-end or external API—data is local.
Detail
• That cartSlice exports actions and reducers to the store
• Call out the single data source (productsData.js) and its import into Home or a central initializer