Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@auraxy/react-luosimao

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@auraxy/react-luosimao

luosimao

  • 1.1.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@auraxy/react-luosimao

NPM Version Download Month gzip with dependencies: kb typescript pkg.module

pkg.module supported, which means that you can apply tree-shaking in you project

中文文档

luosimao

Installation

npm i -S @auraxy/react-luosimao

Global name - The variable the module exported in umd bundle

ReactLuoSiMao

Interface

See what method or params you can use in index.d.ts

Usage

import React, { useState } from 'react'
import { ReactLuoSiMao, resetLuoSiMao } from '@auraxy/react-luosimao'

const SignUp = () => {
  const [captcha, setCaptcha] = useState('')
  
  const submit = () => {
    api().finally(() => {
      resetLuoSiMao()
    })
  }
  
  return (
    <div>
      ...other form items
      <ReactLuoSiMao
        siteKey="6949f47d7f1f236a091befa93f"
        onChange={setCaptcha}
      />
    </div>
  )
}

style

For building style, you may need to import the css or scss file:

// scss
import 'node_modules/@auraxy/react-luosimao/lib/css/index.scss'

// css
import 'node_modules/@auraxy/react-luosimao/lib/css/index.css'

Or

// scss
@import 'node_modules/@auraxy/react-luosimao/lib/css/index.scss'

// css
@import 'node_modules/@auraxy/react-luosimao/lib/css/index.css'

Or, you can build your custom style by copying, editing and importing node_modules/@auraxy/react-luosimao/lib/css/index.scss

QA

  1. Error Error: spawn node-sass ENOENT

You may need install node-sass globally, npm i -g node-sass

Keywords

FAQs

Package last updated on 08 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc