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

captcha-component-react

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

captcha-component-react

A simple captcha component library for react.

  • 0.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
44
increased by22.22%
Maintainers
1
Weekly downloads
 
Created
Source

libkaptcha

Boilerplate code for the Captcha react component library.

Reference: How to build a React component library

Usage:

import { KaptchaCard } from "@aashutosh-lis/libkaptcha";

// to use library css
import "@aashutosh-lis/libkaptcha/dist/style.css"  


function App() {

  //used for backend validation after frontend-library verification of captcha
  const [uuid, setUuid] = useState<string>(''); 
  

  const updateUuid = (value:string)=>{
    setUuid(value);
  }

  return (
    <div className="App">
      <KaptchaCard url="http://localhost:3000" setCaptchaUuid={updateUuid}/>
    </div>
  );
}

export default App;

Building

The library can be built using npm run build. Once built, the built artifacts are present in the dist directory.

To use the library locally , we publish it to the local yalc store using npx yalc publish in the library's root directory.

Then run npx yalc add <library_name> in the project where you want to use the library.

FAQs

Package last updated on 01 Dec 2023

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