React |Working of React | Question 2

Last Updated :
Discuss
Comments

During reconciliation, how does React decide if a component should be updated, replaced, or left unchanged?

By comparing props only

By checking the component's state

By comparing old and new virtual DOM using keys and element types

By using the real DOM

Share your thoughts in the comments