本文介绍了React复制到剪贴板可以使用插件copy-to-clipboard,分享给大家,具体如下:
参考API文档
安装
npm install --save react react-copy-to-clipboard
使用