Skip to content

Instantly share code, notes, and snippets.

@brudil
Last active June 11, 2019 15:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brudil/093cb969ff806137fe06126da6d23376 to your computer and use it in GitHub Desktop.
Save brudil/093cb969ff806137fe06126da6d23376 to your computer and use it in GitHub Desktop.
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>
)
}
<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