0

I have some code the uses the following lines:

document.execCommand('selectAll', false, null);
document.execCommand('copy', false, null);

And it works great. However, Mozilla has marked this command as obsolete. What is a better way of doing this, possibly with React or plain Javascript?

Bryn
  • 39
  • 4

0 Answers0