Q. What is the key difference between props and state in React?

  • (A) Props are mutable, state is immutable
  • (B) Props are used for internal data, state for external
  • (C) Props are passed, state is managed internally
  • (D) No difference
πŸ’¬ Discuss
βœ… Correct Answer: (C) Props are passed, state is managed internally
Explanation: Props are passed from parent to child, state is managed within a component.
Explanation by: Mr. Dubey
Props are passed from parent to child, state is managed within a component.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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