How can I implement a button that copies the text displayed on to clipboard with a simple method? I'm having a mental block.
<div className="detailholder">
<div className="textArea">
<strong>www.testexample.com</strong>
</div>
<div >
<button className="iconHolder">
<i data-clipboard-text="www.testexample.com"></i>
<FiCopy />
<strong>Copy</strong>
</button>
</div>
</div>