Skip to content

Commit

Permalink
Merge branch 'initial-build'
Browse files Browse the repository at this point in the history
  • Loading branch information
amira-m-m committed Aug 13, 2024
2 parents ef09791 + 6fbc296 commit 34ddd2f
Show file tree
Hide file tree
Showing 29 changed files with 22,531 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*

/testing
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# React Calculator

## Introduction

This project serves as a practical application of the skills acquired through beginner and advanced React courses provided by Meta. It is a sequential calculator application built with React.js, Chakra UI, and the [bignumber.js](https://mikemcl.github.io/bignumber.js/) API. State management techniques are to keep the user interface synchronized with real-time data updates.

## Features

### Current

* Performs basic arithmetic operations (addition, subtraction, multiplication, division, exponentiation) in sequential order.
* Supports decimals.
* Displays input in real-time.
* Shows intermediate results with each operation key press, similar to Windows Calculator.
* Clear button resets current value with one click and clears the entire equation with a second click.
* Basic error handling for invalid operations.

### Upcoming

* Memory list to store previous equations and results.
* Light/dark theme toggling.
* Keyboard entry.
Loading

0 comments on commit 34ddd2f

Please sign in to comment.