Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 624 Bytes

README.md

File metadata and controls

32 lines (20 loc) · 624 Bytes

REACT / TypeScript / Hooks: Credit Card Input component / Material Design

with:

  • validation of card number
  • validation of cvc
  • validation of expiration date
  • detect card issuer
  • auto-switch to next field
  • keyboard support

Workshop test to test TS / Hooks in TS and Material Design

DEMO

See the demo: https://codesandbox.io/s/github/stimoroll/react-credit-card-input

RUN app

Open http://localhost:3000 to view it in the browser.

Available Scripts

yarn start

yarn build

TODO

  • extract messages ouside
  • add loading spinner while loading card image
  • e2e tests