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

232
Vistas
How to rerender the page in next js

I have a script that says it generates different inputs (input, textarea, checkbox, select...) and then renders it on the page, I need in textarea works onchange when it works, the submit button will become active. Now the situation is like this, I go to the page, the button is disabled, when I go to the VS code and save code there, and return to the page, the button becomes active, that is, a rerender occurs, I tried to make a state using useState just to change it and so that it rerender the page, but so far without success, please help me

case 'textarea': {
const docTextarea = document.getElementById(
field.name
) as HTMLTextAreaElement;

docTextarea.value = parentConfigValue;

const event = new MouseEvent('input', {
view: window,
bubbles: true,
cancelable: true,
});

docTextarea.dispatchEvent(event);
break;
}
I'm using next js, but nor ssr here
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