I Built a React Tool to Trace Where a 464 ms Click Spent Its Time

https://hackernoon.imgix.net/images/null-frd2bkb.png

I clicked Log in on a demo page. Chrome measured 464 ms from the click to the next paint. That was the page’s Interaction to Next Paint (INP) at the time. Okay, so the click was slow. I still needed to figure out where the time went.

So I built react-inp-blame. It lines up the browser’s interaction timings with what React committed. The login report showed 405 ms of processing. It leaned toward the click handler because only two components re-rendered.

464 ms click on button "login" in SignInPage. The onClick handler or React's render ofSignInPage most likely took the 405 ms, the handler the likelier: React re-rendered only2 components.

I started it on September 12, 2026. 0.1.0 was on npm five days later and 1.0.0 came out on October 10. No runtime dependencies, MIT license. Everything I show below runs on the live demo, so you can...

Copyright of this story solely belongs to hackernoon.com. To see the full text click HERE

Read more