Want to know how many days until Christmas? This app will countdown to your selected date and tell you how long to wait untill your favourite holiday.
Select from the dropdown list your date and check out how many days, hours, minutes and seconds until that day.
This is a simple but tricky app because the date object in JavaScript can be a little tedious to deal with in certain occasions. For example, some dates here are in the past so I had to parse them and add an extra year to the dates. Also date variables had to be converted into milliseconds passed from January 1, 1970 UTC in order to compare one to another.
(This app started out by being only a new years countdown but I then added extra dates, hence the github repo name)
npm install
npm start
- REACT.JS
- REACT FUNCTIONAL COMPONENTS
- REACT HOOKS
- DATE OBJECT
- CSS ANIMATIONS
Previews: