kk-react-drag
v1.0.3
Published
### How To Use
Downloads
2
Readme
kk-react-drag
How To Use
npm install kk-react-drag --save
import React from "react"
import ReactDOM from "react-dom"
import ReactDraggable from "kk-react-drag"
class App extends React.Component{
render(){
return <div style={{width:"100%",height:500,background:"red"}}>
<ReactDraggable bounds={true}>
<div style={{width:100,height:100,background:"black"}}>
</div>
</ReactDraggable>
</div>
}
}
ReactDOM.render(<App />,document.body)