Package Exports
- snippyjs
- snippyjs/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (snippyjs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Snippyjs
A simple npm library for copy/paste functions
features
1.There is a copy function 2.There is a paste function
installation
npm i snippyjs
How to implement snippyjs
import { Copy } from 'snippyjs'
export const App = async () => {
return(
<button onclick={await Copy("Hi")}>Click me</button>
)
}