JSFiddle - React, Tailwind, and code Playground
by CorFlamberg
HTML
<div class="film-details__emoji-label" for="foobar">div</div>
<label class="film-details__emoji-label" for="foobar">label</label>
CSS
.test {
color: red;
}
JavaScript
document.querySelector('label.film-details__emoji-label[for="foobar"]').className = 'test';