Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/546669204/react-copyable


https://github.com/546669204/react-copyable

Last synced: 12 days ago
JSON representation

Awesome Lists containing this project

README

        

# react-copyable

## 使用

```tsx
const CopyableComponent = Copyable({
copy({value}){
return value
},
paste({onChange},data){
onChange({...data})
}
})

const MyComponent = ({value,onChange})=>{
return onChange(e.target.value)}/>
}

export default CopyableComponent(MyComponent);

```

待补充。