JSFiddle - React, Tailwind, and code Playground

by akogch

HTML

<button>Клик</button>
<div></div>

CSS

div {
  width: 100px;
  height: 100px;
  background: rgb(9, 111, 151);
  margin: 50px auto;
}
.shadow {
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.212);
}

JavaScript

$("button").click(function () {
  $("div").toggleClass("shadow")
})