JSFiddle - React, Tailwind, and code Playground

HTML

<div data-icon="\25B6">Title</div>

CSS

div:before {
    content: attr(data-icon);
}