JSFiddle - React, Tailwind, and code Playground

HTML

<p>The inline style was removed from all selected elements..</p>
<div style="height:300px; width:300px; background-color:red;"></div>
<br>
<div style="height:300px; width:300px; background-color:red;"></div>
<br>
<div style="height:300px; width:300px; background-color:red;"></div>
<br>
<div style="height:300px; width:300px; background-color:red;"></div>

CSS

div {
    width:100px;
    height:100px;
    background-color:#000000;
}

JavaScript

var target = document.querySelectorAll('div');
Array.prototype.forEach.call(target, function(element){
    element.removeAttribute('style');
});