JSFiddle - React, Tailwind, and code Playground
JavaScript
function computeStyles(el) {
var s = '';
var o = window.getComputedStyle(el);
for (var i = 0; i < o.length; i++) {
s += o[i] + ': ' + o.getPropertyValue(o[i]) + '; ';
}
return s;
}
var c1 = computeStyles(document.body);
var c2 = getComputedStyle(document.body).cssText + " ";
alert(c1 === c2 ? "c1 = c2" : "c1 ≠c2");