JSFiddle - React, Tailwind, and code Playground

by GregoireMTL

HTML

<div class="container">
  <div class="hello">Hello</div>
  <div class="goodbye">Goodbye</div>
  
  <div class="copie"></div>
  </div>
</div>

JavaScript

var mylayer=$('.hello').clone();

alert(mylayer.text());