in React JS by
Q:

What is Lifting State Up in React?

1 Answer

0 votes
by

When several components need to share the same changing data then it is recommended to lift the shared state up to their closest common ancestor. That means if two child components share the same data from its parent, then move the state to parent instead of maintaining local state in both of the child components.

Click here to read more about React JS
Click here to read more about Insurance

Related questions

0 votes
asked Jan 31 in React JS by Robindeniel
0 votes
asked Jan 30 in React JS by rajeshsharma
0 votes
asked Jan 31 in React JS by Robindeniel
+1 vote
asked May 29, 2020 by anonymous
0 votes
asked Jan 31 in React JS by Robindeniel
0 votes
asked Feb 23 in React JS by SakshiSharma
...