javascript Copy the current URL to the clipboard in a React app Interacting with the clipboard used to be hard as there weren't a lot of great browser APIs. That's changed now. Here's how to copy the URL of the current page using React. You don't really need to use React, but I did.