How does React update the UI when a state change occurs?
It reloads the whole page
It re-renders the components affected by the state change
It triggers a complete re-render of the application
It does not update the UI on state change
This question is part of this quiz :
Working of React