Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

141
Vistas
Adding Scripts to head with nextjs

I would like to implement a script within my next.js app I'm currently using

import Script from "next/script";

and then within my

return (
<div>
<Script>const tooltips= {color: true, icon: true, size: true}</Script>
<Script src="url to script"></Script>
<main>
</main>
</div>
)

the script loads, but how can i set the tooltips const in nextjs? using

const something = ""

doesn't work. I tried using the script within a normal html file and it works. How would i implement this in nextjs? I'm probably already implementing it wrong because i cant use const after my return? What would be the right way to set these values?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda