timeago-react

timeago-react is a simple react component used to format date with *** time ago statement. eg: '3 hours ago'.

The component based on timeago.js which is a simple javascript module.

Realtime render. Automatic release the resources.

  • Simple. Only 2kb.

  • Efficient. When the time is 3 hour ago, the interval will an hour (3600 * 1000 ms).

  • Locales supported.

GitHub