tYuriy / react_counter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React counter

Here is the working version

You are given the App component with a title with a text Count is 0 by default and three buttons. The buttons should 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

About

License:GNU General Public License v3.0


Languages

Language:JavaScript 67.8%Language:TypeScript 24.9%Language:HTML 5.4%Language:SCSS 1.3%Language:Shell 0.6%