Skip to content

codehangar/react-credit-card-form

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

React Hack Night Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •