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.
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:
This should automatically open http://localhost:3000 to view it in your browser.
This project was bootstrapped with Create React App.