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

264
Views
is any methods for refreshing data in table in react js?

As I'm trying to refresh the page by using window.location.reload() method the page is reloading but it is redirecting from current page to home page.I have searched more number of methods like setInterval() but when we add,delete and edit the record after clicking the submit button the record in the table is not visible.so as i'm new to this react js,anyone please help me to overcome from this issue

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The correct approach maybe must be store the data of your table like a state.

If you're using hooks:

const [dataTable, setDataTable] = useState(null)

And after you add, edit or delete a record you should update your dataTable state with the new dataTable.

onDataTableChange = (data) => {
setDataTable(data) }

This going to update your state and re-render with the new data.

about 4 years ago · Juan Pablo Isaza Report
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!