react.js-copy-clipboard
Directly copy any string to clipboard in react.js with this module
See in CodeSandbox
**In react.js : **
...
import * as CCJ from "copy-clipboard-js";
...
CCJ.copyText("something to copy");//place it somewhere,anywhere,everywhere
...
Available on npm
Just add in your package.josn
# "copy-clipboard-js": "^1.0.0"