JSFiddle - React, Tailwind, and code Playground
HTML
<html>
<body>
<p>Not selectable</p>
<span> selectable</span>
</body>
</html>
JavaScript
$("p")
.attr("unselectable", "on")
.css("-moz-user-select", "none")
.css("-webkit-user-select", "none")
.css("user-select", "none");