This is an example of the Billsby Card Tokenizer implemented in React, which you can use as the basis of your own projects