JSFiddle - React, Tailwind, and code Playground

HTML

<a href="a.html">A</a>
<a href="b.html">B</a>

CSS

a:not(:first-child)::before{
    content: " - ";
}