A simple, user-friendly calculator application built with React. It supports standard arithmetic operations such as addition, subtraction, multiplication, and division. The user interface is straightforward and user-friendly, featuring buttons for digits, operations, and controls like clear (AC), delete (DEL), and evaluate (=).
- Basic arithmetic operations: addition, subtraction, multiplication and division.
- Clear all input (AC) and delete the last digit (DEL) functions.
- Supports decimal numbers.
- Automatically limits the number of digits for operands and results to ensure usability.
- Responsive Design: Optimized for both mobile and desktop devices.
-
Clone the repository:
git clone https://github.com/your-username/simple-calculator.git
-
Navigate to the project directory:
cd simple-calculator
-
Install the dependencies:
npm install
-
Start the development server:
npm start
-
Open your browser and navigate to
http://localhost:3000
to see the calculator in action.
DigitButton.js
: Component for digit buttons.OperationButton.js
: Component for operation buttons.styles.css
: CSS styles for the calculator.
React, JavaScript, CSS & HTML