JSFiddle - React, Tailwind, and code Playground

HTML

<span><a href="#">A</a></span>
<span><a href="#">B</a></span>

CSS

span:not(:first-child)::before {
    content: ' - ';
}