Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

229
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!