Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 939 Bytes

README.md

File metadata and controls

55 lines (40 loc) · 939 Bytes

React Credit Card Form

Build Status

Contributing

Getting Started

npm install

How to Run

$ npm start

Usage

import ReactCreditCardForm from 'ReactCreditCardForm';

const handleCCSubmit = (cc) => {
  console.log("App.js cc", cc)
}

...

<ReactCreditCardForm handleSubmit={(cc) => handleCCSubmit(cc)}/>

...


Import ReactCreditCardForm, add the component, and handle the submit callback as you wish.

Directory Structure

  • dev (development build files)
  • dist (distribution files)
  • node_modules
  • src (app source code)
    • components (reusable elements)
      • Component
        • Component.js
        • Component.scss
    • index.html
    • entry.js
    • index.scss
  • tests (automated tests)
  • tools (build tools)
  • LICENSE
  • package.json
  • README.md