Props are read-only and set by the parent — state is mutable data owned by the component itself. After this lesson you can initialize component state, update it correctly with setState, explain why direct state mutation is a silent bug, and build a StarRating component that stores the selected rating in state and re-renders when a user clicks.
By the end of this module, you will master the following architectural patterns and implementation details.
Enroll in the course to unlock full access
Mastery tools are available to enrolled students.
Enroll to Unlock Quizzes