How to detect rerenders in React JS correctly?
问题 Let's say we have a parent component and multiple functional child components. I want to clearly know if the parent re-renders does the child re-renders or not. After going through a few articles I came to know there are 3 ways we can detect rerenders. (Let me know if there are more ways.) 1. Put a console.log in the child component. 2. Use Chrome paint flashing option in the settings. 3. Use React dev tool Do all these ways are correct to know if the component really rerenders? Because it