This is a simple calculator web application built with React. It allows you to perform basic arithmetic operations like addition, subtraction, multiplication, and division.
- Responsive calculator UI
- Supports addition, subtraction, multiplication, and division
- Handles decimal numbers
- Clear (
C) and backspace (<) functionality - Displays errors for invalid operations
https://web-project-react-calculator.vercel.app/
-
Clone the repository:
git clone Calculator cd Calculator/calculator -
Install dependencies:
npm install
-
Start the app:
npm start
src/component/buttons.jsx– Button component for calculator keyssrc/component/input_box.jsx– Layout for calculator buttonssrc/component/value_box.jsx– Displays the current value or resultsrc/Container.jsx– Main calculator logic and statesrc/index.css– Styles for the calculator UI
- Click the buttons to enter numbers and operators.
- Use
Cto clear the input. - Use
<to delete the last character. - Press
=to get the result.
- React JS (Functional Components + Hooks)
- HTML/CSS for UI and layout
- JavaScript for logic and evaluation
