A modern, responsive calculator application built with React and Next.js, featuring a clean UI and comprehensive functionality.
- 🧮 Standard arithmetic operations
- 📝 Expression history tracking
- ⌨️ Keyboard support
- 🔢 Exponential notation for large numbers
- ↩️ Backspace functionality
- 🕒 Calculation history viewer
- 🎨 Dark mode UI
- Next.js 14
- React
- TypeScript
- Tailwind CSS
- Heroicons
- Node.js 18 or later
- npm or yarn
- Clone the repository:
git clone https://github.com/yourusername/react-calculator.git- Navigate to the project directory:
cd react-calculator- Install dependencies:
npm install
# or
yarn install- Run the development server:
npm run dev
# or
yarn dev- Open http://localhost:3000 with your browser to see the calculator.
- Click the number buttons or use your keyboard to input numbers
- Use operators (+, -, *, /, ^) for calculations
- Press Enter or '=' to calculate
- Use Backspace to delete the last input
- Press Escape or 'C' to clear all
- Click the clock icon to view calculation history
0-9: Input numbers+,-,*,/,^: OperatorsEnteror=: CalculateBackspace: Delete last inputEscape: Clear all(,): Parentheses
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Heroicons for the beautiful icons
- Tailwind CSS for the styling
