This application uses React to create a simple calculator that is capable of addition, subtraction, and resetting.

- In the Display component, it shows values of buttons and displays total value
- In the Buttons component, it provides buttons to perform various operations and clears display.
- Use of React, node.js, npm
- Learning root
- Deploying on domain
- Estabilish DOM elements
- Use of Math functions in JS
To use this calculator, follow these steps:
- Clone the repository: git clone https://github.com/WinnieYuDev/react-calculator.git
- Navigate to the app directory in terminal: cd app
- Install dependencies in terminal: npm install
- Run the app by pasting this into the terminal: npm run dev
- Open your browser and navigate to http://localhost:5173/
This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:5173/ to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Note: this is a one-way operation. Once you eject
, you can't go back!