JSFiddle - React, Tailwind, and code Playground

by Vitaliy Ivanov

HTML

<div id="state"> </div>
						</div>	
			<div class="rrr">t5g4g</div>

CSS

.rrr{
	display: block;
	width: 100px;
	height: 100px;
	background-color: red;
	border: 1px solid red;
	margin-top: 100px;
  color: white;
}

JavaScript

$(document).ready(function(){
if ($(".rrr").is(':hidden')) {
    $("#state").text("Партия содержит брак!");
}


		});