Skip to content

Latest commit

 

History

History

meta-w4

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

React Course

For the 4th and final week of React Basics from Coursera the assignment is to build the Simplest Working Calculator. Rather than repost that code here, I created this Unnecessarily Complicated Calculator.

Calculator made with React

The Unnecessarily Complicated Calculator extends the original version with:

  • Add Ant Design components and CSS for better appearance.
  • For the buttons, replace the words (like add), with the symbols (like +).
  • Replace input with number buttons.
  • Handle divide by 0.
  • Handle a result that is 'undefined'.
  • Limit to 6 decimal place precision.
  • Create child components for NumberButton and ActionButton

To run it, from the project directory, type:

npm start

This should automatically open http://localhost:3000 to view it in your browser.

This project was bootstrapped with Create React App.