React: Update Child Component Without Rerendering Parent

Posted by Prem Tiwari | Updated on | Reactjs

React: Update Child Component Without Rerendering Parent. If your app is not so big and doesn’t have so many children do not struggle with this problem since rendering is not so expensive. The expensive one is DOM manipulation of a component. Here, React diffs the real and virtual DOM and do not unmount/remount Label component even it re-renders. But, if you write your Label component as a PureComponent it doesn’t re-render. But for Clock component to be updated like this, there is no way.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers