title: Stripe with React JS
body: <p>I need to create token with Stripe.js in React JS, but I can't find any easy way. In node.js I would do something like this:</p>
  
  <pre><code>   stripeClient.tokens.create({
        card: {
          number: '4242424242424242',
          exp_month: 12,
          exp_year: 2050,
          cvc: '123'
        }
  </code></pre>
  
  <p>But the Stripe npm module doesn't work for me in React JS. I'm getting error:</p>
  
  <blockquote>
    <p>Cannot resolve module 'child_process'</p>
  </blockquote>
  
  <p>So since this is node pibrary obviously, I would like to use</p>
  
  <pre><code>&lt;script type="text/javascript" src="https://js.stripe.com/v2/"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>But I'm not sure what should be the best practice to implement external libraries in React</p>