1.0.7 • Published 5 years ago

react-scratch-coupon v1.0.7

Weekly downloads
42
License
MIT
Repository
github
Last release
5 years ago

react-scratch-coupon

Travis npm package Coveralls

Installation

yarn add react-scratch-coupon

Demo

Usage

import ScratchCard from 'react-scratch-coupon'
import couponCover from './couponCover.jpg';

export default class Demo extends Component {
  render() {
    return <div>
      <h1>react-scratch-coupon Demo</h1>
	  <ScratchCard width={300} height={300} cover={couponCover}>
		<form className="form" >
			<h2>Hello There!</h2>
			<h1><code>Coupon code : 1651613335</code></h1>
			<div>
				<input type="text" name="code" placeholder="Coupon Code"></input>
			</div>
			<div>
				<input type="submit" value="Submit"></input>
			</div>
		</form>
	  </ScratchCard>
    </div>
  }
}

References

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.2

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago