Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

236
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda