InterviewSolution
Saved Bookmarks
| 1. |
Re-render On Changes? |
|
Answer» In addition to props, components can also have an internal state. The most prominent example of that BEHAVIOR WOULD be a click counter that UPDATES its VALUE when a button is pressed. The number of clicks itself would be SAVED in the state. In addition to props, components can also have an internal state. The most prominent example of that behavior would be a click counter that updates its value when a button is pressed. The number of clicks itself would be saved in the state. |
|