JSFiddle - React, Tailwind, and code Playground

HTML

<ul>
</ul>

JavaScript

$('ul').html(Array(5).join('<li class="whatever">list</li>'));