Hacker News new | past | comments | ask | show | jobs | submit login

No, it doesn't, a component re-renders when its state changes or its parent re-renders. https://blog.isquaredsoftware.com/2020/05/blogged-answers-a-...



The article you link says that a component will rerender when its parent rerenders or state changes. It doesn't say anything about the props changing.

If you read this sentence "In normal rendering, React does not care whether "props changed" - it will render child components unconditionally just because the parent rendered!"

and understood that react doesn't re-render a component when its props change, well, I read that sentence in a different way.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: