JSFiddle - React, Tailwind, and code Playground

HTML

<svg width="120" height="120"
     viewPort="0 0 120 120" version="1.1"
     xmlns="http://www.w3.org/2000/svg">
    <polygon points="60,0 0,120 120,120"  id="shape"/>
 
</svg>

CSS

#shape:hover{fill:red;}