JSFiddle - React, Tailwind, and code Playground

HTML

<div id="text">
</div>

JavaScript

$(document).ready(function () {
    var interval = setInterval(function () {
        $('#text').append('<p style="display: none;">new text</p>');
        $('#text p:last').fadeIn('slow');
    }, 5000);
});