Q3: What is the difference between State and Props in React?
Props (short for properties) are read-only inputs passed from parent components to child components to configure them. State represents internal, dynamic data managed within a component that can change over time and triggers component re-renders when updated.
Key Takeaways
Props are immutable data passed down from parent components.
State is local component data managed dynamically that triggers re-renders on change.
Knowledge Check
Which of the following describes Props accurately?