Project Name: Gadgets Heavent
A React-based application for managing products, cart, and wishlist, with dynamic data handling using Context API.
- Functional Components: Components like
ProductDetails,Dashboard, andProductto display and manage product information. - State Management: Used
useStatefor managing states likeisInWish(wishlist status). - Props: Passed data (e.g., product details) between components.
- Event Handling: Handled user interactions such as adding products to the cart and wishlist.
- Conditional Rendering: Rendered UI elements conditionally based on the
isInWishstate.
- Context API: Used "DashboardContext" to manage global states like cart and wishlist across components.
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
