JSFiddle - React, Tailwind, and code Playground

by Timmy Willison

HTML

<div id="test"></div>

JavaScript

$('#test').addClass('test').removeAttr('id');

console.debug( $('.test').length );
console.log( $('#test').length );