JSFiddle - React, Tailwind, and code Playground

HTML

<pre>
*
**
***
****
*****
****
***
**
*
</pre>
<pre>
*
**
***
****
**      ***
****
***
**
*
</pre>