You need to implement React application followed these points:
- Create 3 buttons on top. While pushing the button you need to set timeout with a value equal to the number of the button (start from 1)
- Timer of the next pushed button should be started only when previous was finished (all buttons should be available to click; create a queue)
- When timeout will be finished you have to add a new record into the log. Format "${time to output}: ${button nubmer} / ${time when button was pushed}"
- All the records should be in order which were clicked
- Add a button "Reset" that by click should reset the state of the application to initial
- TypeScript
- Functional Components
- Reusable
- It has to support npm-scripts:
- start - run development mode
- build - bundle production version
- To start these commands are enough: npm i && npm start
- add local linters (eslint/prettier), pre-commit, pre-push hooks
- add tests
This project was bootstrapped with Create React App.