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 callsaddOne
method to add1
to thecount
;Add 100
button callsadd100
method to add100
to thecount
;Increase
button callsaddOne
and then, if count was divisible by 5, it additionally callsadd100
.
So the third button should count like this:
101, 102, 103, 104, 105, 206, 207, 208, 209, 210, 311 ...
- Implement a solution following the React task guideline.
- Use React TypeScript cheat sheet.
- 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.