Giter Club home page Giter Club logo

math-magician's Introduction


Math Magician README Template

๐Ÿ“— Table of Contents

๐Ÿ“– Math Magician

This is the first project of the Math Magicians application. You will set up the environment and tools needed to develop a React application. In the following projects, you will develop the actual application.

๐Ÿ›  Built With

Key Features

  • REACT
  • JavaScript
  • HTML/CSS

(back to top)

๐Ÿš€ Deployment link and project presentation

(back to top)

๐Ÿ’ป Getting Started

To get the local copy up and running, follow these steps.

-Clone the Repo or Download the Zip file or https://github.com/TamaraDimov/math-magician.git

-cd /math-magician

-Open it with the live server

Prerequisites

In order to run this project you need:

-Git/Github -REACT knowledge -VS code or any other equivalent tool.

Setup

Clone this repository to your desired folder:

Install

To install locally run git clone https://github.com/TamaraDimov/math-magician.git

-Open the cloned directory with VSCode

-Install live server extension for VSCode

-Right click on the index.html and select open with live servers

Run tests

To run tests, run the following command:

For tracking linter errors locally you need to follow these steps:

After cloning the project you need to run these commands

  • npm install

This command will download all the dependancies of the project

For tracking linter errors in HTML files run:

  • npx hint .

For tracking linter errors in CSS or SASS files run:

  • npx stylelint "**/*.{css,scss}

And For tracking linter errors in JavaScript files run:

  • npx eslint .

(back to top)

๐Ÿ‘ฅ Authors

๐Ÿ‘ค Tamara Dimov

(back to top)

๐Ÿ”ญ Future Features

  • CALCULATOR

(back to top)

๐Ÿค Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

(back to top)

โญ๏ธ Show your support

If you like this project please give it a โญ๏ธ

(back to top)

๐Ÿ™ Acknowledgments

We would like to thank Microverse for granting me the knowledge to do this.

(back to top)

โ“ FAQ (OPTIONAL)

Add at least 2 questions new developers would ask when they decide to use your project.

  • What is the licensing policy of the project?

    • The project is MIT licensed, please refer to the License section
  • Great page!

    • Thank you very much

(back to top)

๐Ÿ“ License

This project is MIT licensed.

NOTE: we recommend using the MIT license - you can set it up quickly by using templates available on GitHub. You can also use any other license if you wish.

(back to top)

math-magician's People

Contributors

tamaradimov avatar ernestkorir avatar

Stargazers

Syed Atril avatar Abdul Ali Noori avatar Ismail avatar

Watchers

 avatar

math-magician's Issues

Math Magicians: refactor with hooks- code explanation

  • The code begins with importing React and useState from the React library,
  • Within the Calculator function, the useState hook is called to create a state variable named results that holds an object with three properties:
  • total
  • next
  • operation

The total property holds the current total value of the calculator, next holds the value of the next number or decimal entered by the user, and operation holds the current mathematical operation that should be performed on total and next.

  • The handleClick function is defined next. This function is passed as a callback to all of the calculator buttons and is responsible for updating the state of the Calculator component based on the user's input.

It extracts the text content of the button that was clicked, and calls the calculate function with the current results state and the text content of the clicked button as arguments. The calculate function returns an updated results object based on the user's input, and the setRes function is called to update the results state with the new results object.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.