Last active
October 16, 2021 12:35
-
-
Save sayyedhammadali/f8094b54f3f75ff099b69a5603c9be83 to your computer and use it in GitHub Desktop.
Copy to Clipboard
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const copyToClipboard = (text) => navigator.clipboard.writeText(text); | |
copyToClipboard("This Sring is Copied To Clipboard."); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment