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

266
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
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