This is a simple Vending Machine simulation built with React.js. The app allows users to:
- View a list of available products
- Select a product to purchase
- Simulate payment by inserting coins
- Receive the selected product if the payment is correct
- View a summary of the transaction (product selected, total amount inserted, etc.)
- View available products with names and prices
- Select a product to purchase
- Get the selected product if the payment is sufficient
- Simple, clean, and responsive UI using React components
- React.js
- React Hooks (useState, useEffect)
- CSS (for styling the UI)
This project is a basic simulation of a vending machine built entirely with React.js to demonstrate state management, user interaction, and component-based architecture in React.
- Clone the repository
- Install dependencies:
npm install