JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://code.jquery.com/jquery-3.2.1.js"></script>
<div id="testLabel" role="heading" aria-label="aria label one">
Test Value
</div>
<input type="button" id="btnTest" value="Push me" />
JavaScript
$(function() {
$('#btnTest').on( "click", function() {
$('#testLabel').attr('aria-label', 'aria label two') ;
$('#testLabel').html('should be aria label two now');
});
});