All Projects → KyleAMathews → react-autoupdate-time

KyleAMathews / react-autoupdate-time

Licence: MIT license
Renders a <time> element that autoupdates at a configurable interval

Programming Languages

coffeescript
4710 projects
Makefile
30231 projects

react-autoupdate-time

Renders a <time> element that autoupdates at a configurable interval.

var date = new Date();
<AutoupdateTime value={date} />

Set custom update interval (defaults to 3000 miliseconds).

var date = new Date();
<AutoupdateTime value={date} interval=1000 />

Uses moment.js internally to render a relative time e.g. "an hour ago".

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].