re: React Beginner Question Thread ⚛ VIEW POST

VIEW PARENT COMMENT VIEW FULL DISCUSSION
 

Lift it up to their shared common ancestor. Then it will be preserved between remounting of children.

reactjs.org/docs/lifting-state-up....

code of conduct - report abuse