Q. What does 'lifting state up' help to solve in React?

  • (A) Sharing state between sibling components
  • (B) Passing props to child components
  • (C) Styling components
  • (D) Handling events
πŸ’¬ Discuss
βœ… Correct Answer: (A) Sharing state between sibling components
Explanation: State is moved to the closest common ancestor to share it.
Explanation by: Mr. Dubey
State is moved to the closest common ancestor to share it.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
72
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
82%
Success Rate