Q. What does 'lifting state up' mean in React?

  • (A) Moving state to Redux store
  • (B) Moving state to a common parent component
  • (C) Passing state as props downward
  • (D) Using useRef instead of useState
πŸ’¬ Discuss
βœ… Correct Answer: (B) Moving state to a common parent component
Explanation: Lifting state up involves moving shared state to the closest common ancestor component.
Explanation by: Mr. Dubey
Lifting state up involves moving shared state to the closest common ancestor component.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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