Home > Enterprise >  How can I convert this html script tag code to react
How can I convert this html script tag code to react

Time:08-17

I found a package but I am not sure because it´s not an official package, this is the html script tag code:

   <form>
        <script
            src="https://checkout.epa.co/checkout.js"
            
            data-epayco-key="491d6a0b6e992cf924edd8d3d088aff1"
            data-epayco-amount="50000"
            data-epayco-name="Vestido Mujer Primavera"
            data-epayco-description="Vestido Mujer Primavera"
            data-epayco-currency="cop"
            data-epayco-country="co"
            data-epayco-test="true"
            data-epayco-external="false"
            data-epayco-response="https://ejemplo.com/respuesta.html"
            data-epayco-confirmation="https://ejemplo.com/confirmacion"
            data-epayco-methodconfirmation="get">
        </script>
     </form>

CodePudding user response:

You can't convert an html website to a react project

CodePudding user response:

Try this

Or you can also add your script tag to your index.html file in your react project. Typically it's under public folder.

  • Related