DEV Community

Discussion on: How the React updates DOM?

Collapse
 
sandydamy profile image
Sandesh Damkondwar • Edited

Agree, we will end up in hitting the render method unnecessarily and read DOM & virtual DOM and check diff and decide it will be rendered or not. If the DOM is huge and have lot of nested props usage, one unused prop change might end up in doing lot of unnecessary complex tasks if componentShouldUpdate is not handled correctly.