Q. What does lifting state up mean in React?

  • (A) Creating global state
  • (B) Passing state to Redux
  • (C) Moving state to a common ancestor component
  • (D) Using local storage
πŸ’¬ Discuss
βœ… Correct Answer: (C) Moving state to a common ancestor component
Explanation: Lifting state up means moving state to the nearest common ancestor to share it across components.
Explanation by: Mr. Dubey
Lifting state up means moving state to the nearest common ancestor to share it across components.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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