New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-pinify

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-pinify

React-Pinify: Simplifying secure PIN input for React applications effortlessly.

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
5
150%
Maintainers
1
Weekly downloads
 
Created
Source

react-pinify

Simplifying secure PIN input for React applications effortlessly

Usage

npm i react-pinify
import {usePinify, Pinify, Underlined} from 'react-pinify'

const App = () => {

    const pinify = usePinify();

    const formSubmitHandler = () => {
        try {
            const val = pinify.submitEventHandler()
            console.log(val)
        }
        catch (e) {
            console.error(e)
        }
    }

    return <>
        <Pinify 
            reference={pinify.ref} 
            onChange={pinify.valueChangeHandler} 
            defaultStyles = {Underlined}
        />
        <button onClick={formSubmitHandler}>Submit</button>
        {/*JSX*/}
    </>
}

Keywords

react

FAQs

Package last updated on 14 Mar 2024

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