Skip to content
JavaScript HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
public
src
.gitignore
CHANGELOG.md
README.md
package-lock.json
package.json
yarn.lock

README.md

React Markdown Calculator is based on create-react-app 2.0+

State management

The source of truth at any given time is on the following state variables

curValue
formula
evaluated
  • curValue holds the current operation / numeric token
  • formula holds the entirety of everything before eval is made
  • Evaluated is a flag check to determine if "=" was last command

Quick demo showing the react state and functionality of app

Installing

Run on root repository

npm install
npm run start
You can’t perform that action at this time.