This is a simple calculator app built using React. It allows users to perform basic arithmetic calculations such as addition, subtraction, multiplication, and division. The app provides a user-friendly interface for performing calculations.
- Addition (+)
- Subtraction (-)
- Multiplication (*)
- Division (/)
- Clear (C) - Resets the calculator
- Delete (DEL) - Removes the last input character
- Equal (=) - Calculates the result of the expression
To run this calculator app on your local machine, follow these steps:
- Clone this repository:
git clone https://github.com/your-username/react-calculator-app.git
- Navigate to the project directory:
cd react-calculator-app
- Install the required dependencies:
npm install
- Start the development server:
npm start
The app should now be running on http://localhost:3000/
.
-
Enter your desired numeric values and arithmetic operators by clicking the buttons.
-
Press the "Equal (=)" button to calculate the result.
-
To clear the input or result, press the "Clear (C)" button.
- HTML
- React
- JavaScript
- CSS
The app's source code is organized into components:
App.js
- The main application component.Calculator.js
- The calculator component that handles calculations and user input.Button.js
- The button component used for numeric and operator buttons.
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your fork.
- Submit a pull request to the original repository.
This project is licensed under the MIT License.
- Your Name
- Email: anantsingh4444@gmail.com
- GitHub: https://github.com/anantsingh4
Special thanks to the React community and the creators of various tutorials and resources that helped in building this calculator app.
Feel free to use and modify this calculator app for your projects. If you have any questions or suggestions, please feel free to reach out to the author. Enjoy calculating!