JSFiddle - React, Tailwind, and code Playground

HTML

<div blue></div>

CSS

div {
    height: 100px;
    width: 100px;
}

[blue] {background: blue;}

[red] {background: red;}

JavaScript

console.log( $('div') ); //just to show you that jQuery can find the div
console.log( $('div').prop('blue') );

$('div').prop('blue', false);
$('div').prop('red', true);