A simple calculator built with React.js and styled using Tailwind CSS.
- Basic arithmetic operations: Addition, subtraction, multiplication, and division.
- Clear (C) button: Reset the calculator to its initial state.
- Error handling: Displays an error message for invalid input or calculations.
-
Prerequisites:
- Make sure you have Node.js and npm (or yarn) installed on your machine.
-
Install dependencies:
npm install # or yarn install
Click the number buttons to enter numbers. Click the operator buttons (+, -, *, /) to select an operation. Click the "=" button to calculate the result. Click the "C" button to clear the display. Technologies Used
React.js: A JavaScript library for building user interfaces. Tailwind CSS: A utility-first CSS framework for rapid UI development. Math.js: A JavaScript library for mathematical calculations.