re: React Beginner Question Thread ⚛ VIEW POST


Is there any way to react to manage the state between components? For example, a component A takes me to component B and B returns to A, but with its original state, to avoid further processing, since there is a lot of data.


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

code of conduct - report abuse