Skip to content

Pidsvynok/react_counter-js

 
 

Repository files navigation

React counter

Here is the working version

You have the App with a title and 3 buttons. Implement addOne and add100 functions so the buttons work the next way:

  • Add 1 button calls addOne method to add 1 to the count;
  • Add 100 button calls add100 method to add 100 to the count;
  • Increase button calls addOne and then, if count was divisible by 5, it additionally calls add100.

So the third button should count like this: 101, 102, 103, 104, 105, 206, 207, 208, 209, 210, 311 ...

Instructions

  • Install Prettier Extention and use this VSCode settings to enable format on save.
  • Implement a solution following the React task guideline.
  • Open one more terminal and run tests with npm test to ensure your solution is correct.
  • Replace <your_account> with your Github username in the DEMO LINK and add it to PR description.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.3%
  • HTML 5.4%
  • SCSS 1.3%