React Profiler vs Console.log

I made a dummy app with a context that I will want to convert to pub/sub for learning purposes. I added console logs to each component at the beginning. One thing puzzles me. Why does React Profiler show the re-render of a component (DisplayContainer) but the console.log in that component IS NOT displayed in the console? https://playcode.io/2294773
PlayCode.io
React TypeScript Playground Hooks
Try this online React TypeScript Playground Hooks playground with instant live preview and console. Easy & Fast. Experiment yourself.
No description
2 Replies
peculiarnewbie
that's weird i don't see a reason why it would rerender <.<
Paco
Paco3w ago
Try using react-scan to see what’s going on

Did you find this page helpful?