JSFiddle - React, Tailwind, and code Playground
HTML
This is a <span id="mySpan">test of something that looks like a cursor</span>, allegedly.
CSS
.cursor {
border-left: 1px solid red;
margin-right: -1px;
display: inline;
position: relative;
z-index: 1;
}
JavaScript
$('#mySpan').addClass('cursor');