JSFiddle - React, Tailwind, and code Playground
HTML
<div id="test">This will be the element with a specified percentage width</div>
CSS
div#test {
max-width: 50%;
}
JavaScript
$(document).ready(function() {
alert($('div#test').css('max-width'));
});