This is a simple calculator built using React. It allows users to perform basic arithmetic operations such as addition, subtraction, multiplication, and division. The calculator has a clean and intuitive user interface, making it easy to use for basic calculations.
Basic Arithmetic Operations: Perform addition, subtraction, multiplication, and division. Clear Button (AC): Clears the input field. Delete Button (DE): Deletes the last digit from the input field. Decimal Point (.): Adds a decimal point to the input. Equal Button (=): Calculates the result of the expression.
-
Clone the repository:
git clone https://github.com/livinalt/calculator-app.git
-
Install dependencies:
cd calculator-app npm install -
Run the application:
npm start
The calculator will be accessible at [http://localhost:3000].
- React
- React Hooks
- Enter numerical values using the number buttons (0-9).
- Perform arithmetic operations using the respective operator buttons (+, -, *, /).
- Use the Clear button (AC) to reset the input field.
- Use the Delete button (DE) to remove the last digit from the input.
- Add decimal points using the dot (.) button.
- Press the Equal button (=) to calculate the result.
App.jsx: Main component containing the calculator functionality. App.css: Stylesheet for the calculator.
This project is licensed under the MIT License