Skip to content

livinalt/Calc-React-Pro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Calculator

This is a simple calculator built using React. It allows users to perform basic arithmetic operations such as addition, subtraction, multiplication, and division. The calculator has a clean and intuitive user interface, making it easy to use for basic calculations.

Features

Basic Arithmetic Operations: Perform addition, subtraction, multiplication, and division. Clear Button (AC): Clears the input field. Delete Button (DE): Deletes the last digit from the input field. Decimal Point (.): Adds a decimal point to the input. Equal Button (=): Calculates the result of the expression.

Usage

  1. Clone the repository:

    git clone https://github.com/livinalt/calculator-app.git
  2. Install dependencies:

    cd calculator-app
    npm install
  3. Run the application:

    npm start

    The calculator will be accessible at [http://localhost:3000].

Dependencies

  • React
  • React Hooks

How to Use

  1. Enter numerical values using the number buttons (0-9).
  2. Perform arithmetic operations using the respective operator buttons (+, -, *, /).
  3. Use the Clear button (AC) to reset the input field.
  4. Use the Delete button (DE) to remove the last digit from the input.
  5. Add decimal points using the dot (.) button.
  6. Press the Equal button (=) to calculate the result.

Code Structure

App.jsx: Main component containing the calculator functionality. App.css: Stylesheet for the calculator.

License

This project is licensed under the MIT License

About

This is a simple calculator built using React.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors