How to use react-countdown - 4 common examples

To help you get started, we’ve selected a few react-countdown examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github checktheroads / hyperglass / hyperglass / ui / components / CacheTimeout.js View on Github external
const Renderer = ({ hours, minutes, seconds, completed, props }) => {
  if (completed) {
    return
github checktheroads / hyperglass / hyperglass / ui / components / CacheTimeout.js View on Github external
const Renderer = ({ hours, minutes, seconds, completed, props }) => {
  if (completed) {
    return
github checktheroads / hyperglass / hyperglass / ui / components / CacheTimeout.js View on Github external
const Renderer = ({ hours, minutes, seconds, completed, props }) => {
  if (completed) {
    return
github ndresx / react-countdown / examples / src / CountdownHook.tsx View on Github external
const CountdownHook: React.FC = () => {
  const props = useRef({ date: Date.now() + 5000 });
  const { hours, minutes, seconds, api } = useCountdown(props.current);
  return <span>{api.isCompleted() ? 'Completionist!' : `${hours}:${minutes}:${seconds}`}</span>;
};

react-countdown

A customizable countdown component for React.

MIT
Latest version published 3 months ago

Package Health Score

77 / 100
Full package analysis

Popular react-countdown functions