simpliest-react-timer
v1.0.1
Published
Simpliest react timer
Downloads
3
Readme
simpliest-react-timer
Basically, this hook expects as an argument expiryDate to start with, and returns timeLeft object.
Usage:
const timeLeft = useTimer({
expiryDate: new Date('some date in future'),
});
All the UI implementation rests on you.