You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

luckyjun-react-payments

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

luckyjun-react-payments

1.1.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

React Payments 💳

A Simple Payments manager 🗂️

Run Tests Hits npm version

📙 Storybook

Try on ⚡️ StackBlitz

⚙️ Features

😎 Focus on User Experience

  • Automatic next Input focusing 👀
  • Re-Usable, Every State is on you! 📑
  • Validation Complete 🚥
  • Flexible CSS, optimal in mobile 🖼️

🙌 Get Start!

Install

$ npm i @luckyjun/react-payments

$ yarn add @luckyjun/react-payments

Implement Component in your Project

import { Payments } from '@luckyjun/react-payments';

function App() {
  return (
    <div className="App">
      <Payments />
    </div>
  )
}

export default App

📬 Type & Interface

type CardList = { [cardId: string]: Card }

type Card = {
    cardCompany: {
        name: string;
        theme?: any;
    };
    cardNickname: string;
    cardNumbers: string[];
    expireDates: [string, string];
    cardOwner: string;
    securityCode: string;
    passwords: string[];
}

interface PaymentsProps {
  cardList: CardList;
  onCardConfirm: (card: Card, cardId: string) => any;
  onCardDelete: (card: Card, cardId: string) => any;
  onCardUpdate: (card: Card, cardId: string) => any;
  onCardSubmit: (card: Card, cardId: string) => any;
className?: string;
}

Next Step, TDD 클린코드 with React

TODO

  • [] 서버 구축 해서 JS 제공할 수 있도록 해주기 -> Micro-Frontend
  • [] 가상 랜덤 키보드 넣기

FAQs

Package last updated on 21 Apr 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