https://github.com/chandrabose-11/react-add-to-cart-task
This is react Add-to-cart task By using States and hooks And conditional rendering
https://github.com/chandrabose-11/react-add-to-cart-task
conditional-rendering css hooks html javascript react usestate
Last synced: 4 months ago
JSON representation
This is react Add-to-cart task By using States and hooks And conditional rendering
- Host: GitHub
- URL: https://github.com/chandrabose-11/react-add-to-cart-task
- Owner: ChandraBose-11
- Created: 2024-05-14T14:02:16.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-14T14:02:20.000Z (about 1 year ago)
- Last Synced: 2025-01-07T23:40:56.369Z (6 months ago)
- Topics: conditional-rendering, css, hooks, html, javascript, react, usestate
- Language: JavaScript
- Homepage: https://react-add-to-card-task.netlify.app
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is react Add-to-cart task
By using States and hooks
And conditional rendering
# React-Shopping-Cart Application
Created a shopping cart using React that allows users to add and remove items from the cart.
# React App Component
This is the main React component for your web application. It includes a navbar, header, products section, and footer. The navbar displays the count of items in the cart, the header showcases the title and description of the shop, the products section displays a list of products, and the footer contains copyright information.
# React Navbar Component
This is a React component representing a responsive navigation bar (navbar) for a web page. It includes a brand logo, navigation links, and a cart button with a badge displaying the count of items in the cart.
# React Header Component
This is a React component representing a header section for a web page. It includes a dark background with a title and description in the center, styled for a stylish shop homepage.s
# React Product Card Component
This React component renders product cards with dynamic content such as product name, image, price, sale badge, and the ability to add or remove items from the cart.
# React Footer Component
This is a React component representing a simple footer for a web page. It includes a dark background with centered white text displaying the copyright information.# To run this application,you should run this commands
# Clone the repository:
git clone https://github.com/your-username/your-project.git
# Navigate to the project directory:
cd your-project
# Install dependencies:
npm install
# Running the Application :
nmp run dev