copy-to-clipboard2 Copy text to clipboard on the browser. Install $ npm install copy-to-clipboard2 --save Example import copyToClipboard from 'copy-to-clipboard2'; copyToClipboard('Text').then(() => { console.log('Copyed successfully.')}).catch(err => { console.error('Copyed failed', err)})