1.1.0 • Published 4 years ago

captcha_maker v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

captcha_maker

generates captcha

NPM JavaScript Style Guide

Install

npm install --save captcha_maker

Usage

import React, { Component } from 'react'

import Captcha from 'captcha_maker'

export default class App extends Component {
  constructor(props){
    super(props)
    this.state={
      captcha:""
    }
  }
  result=(text)=>{
    this.setState({
      captcha:text
    })
  }
  showCaptcha=(e)=>{
    e.preventDefault()
    alert(this.state.captcha)
  }
  render () {
    return (
      <div>
        <form onSubmit={this.showCaptcha}>
        <Captcha getCaptcha={this.result} onPress={this.showCaptcha} className="hello" />
        <input type="submit" value="submit" name="submit"/> 
        </form>
      </div>
    )
  }
}

License

MIT © pradeepgorule

Keyword

Captcha, Captcha Generator, Captcha Maker