Skip to content

bmalehorn/react-use-date

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

react-use-date

minzipped size license

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.

About

React hook to get current date, updating automatically

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published