title: script tag inject but not execute on React
body: <p>this script is created and injected correctly but not execute when try to instance it, but rightly works from browser console.</p>
  <pre><code>useEffect(() =&gt; {
    const script = document.createElement('script');
    script.id = 'mp';
    script.type = 'text/javascript';
    script.src = 'https://sdk.mercadopago.com/js/v2';
    document.body.appendChild(script);
  
    const mp = new window.MercadoPago('PUBLIC-KEY', {
      locale: 'es-AR'
    });
  
    mp.checkout({
      preference: {
        id: '489283197-ac01a776-5696-46ff-a300-98853bd3472d'
      },
      render: {
        container: '.mp-test',
        label: 'Pagar',
      }
    });
  }, [])
  </code></pre>
  <p>ERROR: window.MercadoPago is not constructor
  <a href="https://i.stack.imgur.com/3xOuY.png" rel="nofollow noreferrer">capture error</a></p>
  <p>I hope suggestes, thanks</p>