Last active
June 11, 2019 15:23
-
-
Save brudil/093cb969ff806137fe06126da6d23376 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Freshers = () => { | |
const { seconds, minutes, hours, days } = useCountdown(new Date(2019, 11, 6)); | |
return ( | |
<div> | |
<div>{days}</div> | |
<div>Days</div> | |
<div>{hours}</div> | |
<div>Hours</div> | |
<div>{seconds}</div> | |
<div>Seconds</div> | |
</div> | |
) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Countdown target={new Date(2019, 11, 6)} render={({ days, hours, seconds }) => ( | |
<div> | |
<div>{days}</div> | |
<div>Days</div> | |
<div>{hours}</div> | |
<div>Hours</div> | |
<div>{seconds}</div> | |
<div>Seconds</div> | |
</div> | |
)} /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment