Q. What is the main difference between props and state?

  • (A) Props are immutable, state is mutable
  • (B) Props are mutable, state is immutable
  • (C) Both are immutable
  • (D) Both are mutable
πŸ’¬ Discuss
βœ… Correct Answer: (A) Props are immutable, state is mutable
Explanation: Props are passed from parent and should not be changed by the component; state is managed internally.
Explanation by: Mr. Dubey
Props are passed from parent and should not be changed by the component; state is managed internally.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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