Skip to content

Eedrisserh/ReactJs_Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to My Reactjs Calculator


Task

The task is to build a simple calculator using ReactJS. The calculator should be able to perform basic arithmetic operations such as addition, subtraction, multiplication, and division.

Description

The ReactJS calculator was built by creating components for the display, punch buttons, operators, and number buttons. The display component is responsible for rendering the current calculation and result. The punch buttons component contains the number buttons, the clear button, and the equal button. The operators component contains the arithmetic operators, and the number buttons component generates the numbers for the calculator.

The application uses the useState hook to keep track of the current calculation and result. The UpdateCalc function updates the current calculation as buttons are clicked, and the computeResult function evaluates the current calculation and updates the result.

Installation

  1. Clone the repository
  2. Install dependencies by running npm install
  3. Run npm start to start the development server
  4. Open http://localhost:8080 to view it in the browser

Usage

The calculator allows the user to perform basic arithmetic operations by clicking the corresponding buttons on the calculator interface. The current calculation and result are displayed in the calculator interface. Clicking the clear button (C) clears the current calculation and result.


The Core Team

Idriss Ibrahim Dodo [email protected]

Made at Qwasar SV -- Software Engineering School <img alt='Qwasar SV -- Software Engineering School's Logo' src='https://storage.googleapis.com/qwasar-public/qwasar-logo_50x50.png' width='20px'>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published