@mcaptcha/react-glue

glue code to setup mCaptcha on your React website

Usage no npm install needed!

<script type="module">
  import mcaptchaReactGlue from 'https://cdn.skypack.dev/@mcaptcha/react-glue';
</script>

README

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} />
  }
}