What is lifting state up in React?

Practice



When several components need to share the same changing data, it is recommended to lift the shared state up to their closest common ancestor. This means that if two child components share the same data from their parent, you move the state into the parent instead of keeping local state in both children.

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Scripting client side JavaScript, jqvery, BackBone"

Terms: Scripting client side JavaScript, jqvery, BackBone