Answer
React compares the new element tree with the previous one to determine what work is needed. Stable types and keys help it preserve component identity.
React compares the new element tree with the previous one to determine what work is needed. Stable types and keys help it preserve component identity.