Skip to content

satyam-software-developer/react-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Calculator

React Calculator project built using React for frontend web development.

  1. Demo: https://drive.google.com/file/d/1PbP-7MpXp2f1BBN3vvofRhMxHuSzFQnD/view?usp=sharing
  2. Hosted link: https://satyam-software-developer.github.io/react-calculator/

Overview

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.

Ideal Time of Completion

3 - 4 hours

Features

  • Basic Operations:
    • Addition (+)
    • Subtraction (-)
    • Multiplication (*)
    • Division (/)
  • 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).

Technologies Used

  • React: A JavaScript library for building user interfaces.
  • CSS: For styling the calculator.
  • Math.js: A library to safely evaluate mathematical expressions (optional).

Installation

To get started with the calculator application, follow these steps:

  1. Clone the Repository:
    git clone https://github.com/satyam-software-developer/react-calculator.git
  2. Navigate to the Project Directory: cd react-calculator

3.Install Dependencies: npm install

  1. Run the Application: npm start This command will start the development server and open the application in your default web browser.

Usage

  • 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.

Contribution

Feel free to fork the repository and submit pull requests if you want to contribute improvements or features.

License

This project is licensed under the MIT License.

Author

SATYAM KUMAR