JSFiddle - React, Tailwind, and code Playground

HTML

<div id="borderDiv">
    <div id="text">hello world</div>
</div>

<div id="button">
    <input id="add" type="button" value="add" />
    <input id="remove" type="button" value="remove" />
</div>

CSS

#borderDiv {
    width:300px;
    height:200px;
    border:1px solid red;
}
#borderDiv #text {
    margin:30px 0px 0px 50px;
}
#button {
 margin:20px;   
}

JavaScript

$(document).ready(function() {
    $('#button #add').click(function() {
        $('#borderDiv').css('border','1px solid red'); 
    });
    $('#button #remove').click(function() {
        $('#borderDiv').css('border','0px solid red'); 
    });
});