JSFiddle - React, Tailwind, and code Playground
by Dong Liu
HTML
<script src="http://momentjs.com/downloads/moment.js"></script>
<script src="http://mattbradley.github.io/livestampjs/js/livestamp.js"></script>
<p><button id='add'>add</button> a live time stamp in the following div. </p>
<div id='stamps'></div>
JavaScript
$(function () {
$.livestamp.interval(30*1000);
$('#add').click(function (e) {
$('#stamps').append('<p><span data-livestamp="' + Math.round(Date.now()/1000) + '"></span></p>');
$.livestamp.resume();
});
});