react-use-date Basic usage: const Clock = () => { const date = useDate(); return <div>The current time is: {date.toISOString()}</div>; }; Try the live demo for an in-depth explanation.