CreditCardInput
This project was made as a recruitment task. The goal was made a credit card component with a credit number field, an expiry date field, and CVC field. Additional options are show images for credit card type based on credit number. I used create-react-app with Typescript as setup env. I used react-i18next for translations. I used too ESLint and Prettier to improve code quality. I coverage my code with unit tests using Jest and React Testing Library.
Credit card types supported: MasterCard and Visa
Quick run
In the project directory, you should run npm install && npm start
. Open http://localhost:3000 to view it in the browser
Available Scripts
In the project directory, you can run:
npm start
Runs the app in the development mode. Open http://localhost:3000 to view it in the browser.
npm test
Launches the test runner in the interactive watch mode.
npm run build
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes. This app is ready to be deployed!
TODO
[x] Add auto focus next input after filling