react-pen-draw
v1.0.2
Published
react package for pen drawing, painting and sketching
Downloads
10
Maintainers
Readme
react-pen-draw
Install
npm install --save react-pen-draw
Usage
import React, { Component } from 'react'
import PenDraw from 'react-pen-draw'
class Example extends Component {
state={
clear:0
}
render () {
return (
<div>
<button onClick={()=>{this.setState({clear:1})}}>clear</button>
<PenDraw
clearScreen={this.state.clear}
lineWidth={2}
lineColor="#000"
style={{
border:"1px solid",
width:"400px",
height:"400px"
}}
/>
</div>
)
}
}
License
MIT © MuhammadTalib