πŸ“Š React Js
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

πŸ‘οΈ
53
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
91%
Success Rate