react-pen-draw

1.0.2 • Public • Published

react-pen-draw

NPM JavaScript Style Guide

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

Package Sidebar

Install

npm i react-pen-draw

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

29.1 kB

Total Files

6

Last publish

Collaborators

  • talib001