Skip to content

React hook to get current date, updating automatically

Notifications You must be signed in to change notification settings

bmalehorn/react-use-date

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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