Skip to content

ITsPorky/Calculator-React

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Calculator App

Description

This is a simple calculator app built using React.js. It performs basic arithmetic operations such as addition, subtraction, multiplication, and division.

Features

  • Addition
  • Subtraction
  • Multiplication
  • Division
  • Clear
  • Decimal

Getting Started

Follow these instructions to get a copy of the project up and running on your local machine.

Prerequisites

  • Node.js installed on your machine

Installing

  1. Clone the repository:

    git clone https://github.com/ITsPorky/calculator-react.git
  2. Navigate to the project directory:

    cd calculator-react
  3. Install dependencies:

    npm install

Running the App

  1. Start the development server:

    npm start
  2. Open your browser and visit http://localhost:3000 to view the app.

Usage

  1. Enter numbers using the on-screen keypad.
  2. Click on the operation buttons (+, -, *, /, =) to perform calculations.
  3. The result will be displayed on the screen.

Built With

  • React.js - JavaScript library for building user interfaces

Project Overview

This section provides an overview of the key learnings and challenges encountered during the development of this project.

Key Learnings

Throughout the course of this project, I acquired valuable skills and knowledge in the following areas:

  • Proficiency using React.js
  • Proficiency using tailwind.css
  • The ability to create React.js components and processing data.

Overcoming Challenges

In the pursuit of project completion, several challenges were encountered and successfully addressed:

  • Challenge 1: React.js

    • Overcame by dedicating time to learn and research React.js to be able to create this project.
  • Challenge 2: Creating React components and using prop data

    • Dedicated time to learn and undestand how react components work and how to utilise props to pass data into the component.
  • Challenge 3: Converting data types

    • Referenced javascript documentation to use inbuilt methods for converting strings to integers and vice versa.

I hope this documentation was helpful, feel free to try it out.

About

A calculator built with React.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published