Use the package manager pnpm / yarn / npm to install rc-credit-card.
pnpm install rc-credit-card
import * as React from 'react'
import { CreditCard } from 'rc-credit-card'
export default function App() {
return (
<CreditCard
isFrontFace={isFrontFace}
cardNumber={cardNo}
name={name}
validThru={valid}
ccv={ccv}
validThruLabel={'Expire Date'}
/>
)
}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
$ pnpm dev