React Calculator project built using React for frontend web development.
- Demo: https://drive.google.com/file/d/1PbP-7MpXp2f1BBN3vvofRhMxHuSzFQnD/view?usp=sharing
- Hosted link: https://satyam-software-developer.github.io/react-calculator/
This project is a simple calculator application built using React. The calculator can perform basic arithmetic operations, including addition, subtraction, multiplication, and division. The app is designed to mimic a typical calculator's functionality, providing a user-friendly interface for performing calculations.
3 - 4 hours
- Basic Operations:
- Addition (
+
) - Subtraction (
-
) - Multiplication (
*
) - Division (
/
)
- Addition (
- Clear Functionality: Allows users to reset the calculator.
- Equals Functionality: Displays the result of the calculations.
- Input Handling: Supports chaining operations (e.g.,
2 + 3 * 4
).
- React: A JavaScript library for building user interfaces.
- CSS: For styling the calculator.
- Math.js: A library to safely evaluate mathematical expressions (optional).
To get started with the calculator application, follow these steps:
- Clone the Repository:
git clone https://github.com/satyam-software-developer/react-calculator.git
- Navigate to the Project Directory: cd react-calculator
3.Install Dependencies: npm install
- Run the Application: npm start This command will start the development server and open the application in your default web browser.
- Open the application in your browser.
- Use the buttons to input numbers and perform calculations.
- You can chain operations together.
- Click the = button to evaluate the expression.
- Click C to clear the current input.
Feel free to fork the repository and submit pull requests if you want to contribute improvements or features.
This project is licensed under the MIT License.
SATYAM KUMAR