Skip to content

npashayev/calculator-react

Repository files navigation

React Calculator App

A responsive calculator built with React, TypeScript, and SCSS, featuring keyboard support, theme toggle, and safe arithmetic evaluation using mathjs.

Live Demo

https://simplereactcalculator.netlify.app/

Features

  • Basic arithmetic: +, -, *, /
  • Parentheses () and decimal points
  • Keyboard support (0-9, +, -, *, /, Enter, Backspace, Escape, (, ))
  • Prevents invalid input (multiple operators, multiple decimals in a number, unmatched parentheses)
  • Clear (C) and delete last character functionality
  • Light/dark theme toggle

Installation

git clone <repository-url>
cd <repository-folder>
npm install
npm run dev

About

A modern, responsive calculator built with React and TypeScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors