JSFiddle - React, Tailwind, and code Playground

HTML

<button id="get">get</button>

<div></div>

CSS

div{
    width:200px;
    height:200px;
    background:green;
    border:2px solid black;
}

JavaScript

$('#get').click(function() {
    var x = $('div').css('borderStyle');
    alert(x)
})