JSFiddle - React, Tailwind, and code Playground
HTML
<div class="progress progress-striped active">
<progress max="100" class="progress-bar" value="80"></progress>
</div>
CSS
.progress-bar {
height: 30px;
background-color: #bbf;
width: 100%;
}
JavaScript
PORCENTAGEM = 0;
var progress = setInterval(function () {
PORCENTAGEM++;
document.querySelector('progress').value = PORCENTAGEM;
if (PORCENTAGEM == 100) clearInterval(progress);
}, 500);