I’ve made a React component to render dates and times in relation to the current time, like “x seconds/minutes/hours/days/years ago”.
This component does not depend on the ubiquitous moment.js, which is close to 64 KB with locales. So I could limit the size to 5 KB by transpiling and minifying with Babel and Babili respectively.
Thanks to Robert Lancer for asking me to make this package and push it to the npm registry. 😃