JSFiddle - React, Tailwind, and code Playground

HTML

<div class="me">

</div>

<div class="you">
  
</div>

CSS

.me {
  width: 200px;
  border:1px solid red;
  height: 100px;
}

JavaScript

function copyStyles(from, to) {
	var fromStyles = getComputedStyle(from);
	for(prop in fromStyles) {
  	to.style[prop] = fromStyles[prop];
  }
}

copyStyles($('.me')[0], $('.you')[0]);