title: how to convert paypal button into a react component?
body: <p>I got the following script and html for the external paypal connect button. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html&gt;
      &lt;head&gt;
  
      &lt;/head&gt;    
      &lt;body&gt;
  
        &lt;span id='cwppButton'&gt;&lt;/span&gt;
        &lt;script src='https://www.paypalobjects.com/js/external/connect/api.js'&gt;&lt;/script&gt;
        &lt;script&gt;
        paypal.use( ['login'], function (login) {
          login.render ({
            "appid":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
            "authend":"sandbox",
            "scopes":"openid",
            "containerid":"cwppButton",
            "responseType":"code",
            "locale":"en-us",
            "buttonType":"CWP",
            "buttonShape":"pill",
            "buttonSize":"lg",
            "fullPage":"true",
            "returnurl":"xxxxxxxxxxx.com"
          });
        });
        &lt;/script&gt;
  
      &lt;/body&gt;
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I need to add this in my react application ? any idea how to do that? </p>