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

315
Views
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
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!