I was working on a React project when I ran into a performance problem.

The application worked.

The Lighthouse score wasn't terrible.

But something still felt wrong.

Some interactions felt sluggish. Components were rendering more than I expected. And whenever I found a performance problem, I had the same question: