Skip to content
/ Calculator Public template

A simple calculator that uses math.js library where all inputs are handled using on-screen buttons.

Notifications You must be signed in to change notification settings

ShwetaSridharan/Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Calculator

A simple calculator built with React.js and styled using Tailwind CSS.

Features

  • Basic arithmetic operations: Addition, subtraction, multiplication, and division.
  • Clear (C) button: Reset the calculator to its initial state.
  • Error handling: Displays an error message for invalid input or calculations.

Getting Started

  1. Prerequisites:

    • Make sure you have Node.js and npm (or yarn) installed on your machine.
  2. Install dependencies:

    npm install 
    # or
    yarn install
    

Usage

Click the number buttons to enter numbers. Click the operator buttons (+, -, *, /) to select an operation. Click the "=" button to calculate the result. Click the "C" button to clear the display. Technologies Used

React.js: A JavaScript library for building user interfaces. Tailwind CSS: A utility-first CSS framework for rapid UI development. Math.js: A JavaScript library for mathematical calculations.

About

A simple calculator that uses math.js library where all inputs are handled using on-screen buttons.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published