JSFiddle - React, Tailwind, and code Playground

HTML

<div id="testDiv" style="visiblity:hidden;margin-right:10px;margin-left:10px">Here</div>

JavaScript

$('#testDiv').attr('style', function(i, style) {
    return style.replace(/visiblity[^;]+;?/g, '');
});