@mcaptcha/react-glue
TypeScript icon, indicating that this package has built-in type declarations

0.1.0-alpha-3 • Public • Published

React JS Glue library

Embed mCaptcha widget in webpages built using React Js

NPM JavaScript Style Guide 0.1.0 Build) codecov

Install

npm install --save @mcaptcha/react-glue

Usage

import React, { Component, WidgetConfig } from 'react'

import MyComponent from 'react-glue'
import 'react-glue/dist/index.css'

class Example extends Component {
  render() {
    const siteKey: SiteKey = {
      key: 'randomSiteKeyAsDisplayedInAdminPanel'
    }
    const config: WidgetConfig = { siteKey }

    return <MyComponent {...config} />
  }
}

Package Sidebar

Install

npm i @mcaptcha/react-glue

Homepage

mcaptcha.org

Weekly Downloads

320

Version

0.1.0-alpha-3

License

(MIT OR Apache-2.0)

Unpacked Size

14.9 kB

Total Files

8

Last publish

Collaborators

  • mcaptcha-user
  • realaravinth