JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html>
<html lang="en">
  <head>
  <title>foo</title>
  </head>
  <body>
  <p id="foo">
  <sc-t>foo</sc-t>
  </p>
  <p id="is-p">
  
  </p>
  <p id="is-sc-t">
  
  </p>
  </body>
</html>

JavaScript

$('#is-p').text($('#foo').is('p')  ? "it is a p" : "it is not a p");
$('#is-sc-t').text($('#foo').is('sc-t')  ? "it is a sc-t" : "it is not a sc-t");