A simple and functional calculator application built with React. This project showcases the use of React hooks (useState
), event handling, and component composition.
- Basic arithmetic operations: addition, subtraction, multiplication, and division.
- Clear (
C
) button to reset the calculator. - Responsive and interactive UI.
/path/to/your/files ├── public │ └── index.html ├── src │ ├── components │ │ ├── Calculator.js │ │ └── CalcButton.js │ ├── App.js │ ├── index.css │ └── index.js ├── package.json └── README.md
cal.html
: The main HTML file.cal.css
: The CSS file for global styles.Cal.js
: The calculator component containing the calculator logic.
To run this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/Waize333/Calculator-APP.git cd react-calculator
-
Install dependencies:
npm install
-
Run the application:
npm start
-
Open the application: Open http://localhost:3000 to view it in the browser.