this demo is mimic a use case of phone number validation, user fills in the phone number, after checking the validation, a request will be send to back end, and a default 60 seconds prevent user to send request again before any response from back end.
- free unmount remount via clicking switch
- fill in your phone number
- click SEND button
- wait 5 secs, receive a
success
feedback :) - re-click SEND button with the same phone number
- another 5 secs, receive a warning about duplicate phone number usage
git clone git@github.com:kimochg/react-countdown-demo.git
cd react-countdown-demo
yarn install
yarn start
normally, a browser window will open and visit localhost:3000/
yarn test
press a to run all test
MIT