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

316
Vistas
In React, is there a central function that gets called every time a render occurs?

When we work with React, and especially app performance, we usually discuss renders.

Is there a central function that gets called every time a component renders?

e.g. React.createElement()?

If so, what is the path where this central function defined in the React repo? i.e. its exact file location. I couldn't find createElement in the repo on Github.

An idea I had was to add a counter to the central render function (e.g. createElement), and then I could print out the total number of renders that occurred when my app ran. It's a huge app with many child components, so a simple way of checking for optimisations is by checking how many renders occur. Unfortunately I do not have access to React Dev Tools.

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