Q. Which is true about props in React?

  • (A) Props are immutable
  • (B) Props can only be strings
  • (C) Props change during component lifetime
  • (D) Props are optional
πŸ’¬ Discuss
βœ… Correct Answer: (A) Props are immutable
Explanation: Props are read-only and cannot be modified by the component receiving them.
Explanation by: Mr. Dubey
Props are read-only and cannot be modified by the component receiving them.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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