Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Copy to Clipboard
- const copyToClipboard = (text) =>
- navigator.clipboard?.writeText && navigator.clipboard.writeText(text);
- // Testing
- copyToClipboard("Hello World!");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement