when we simply update the component, the UI is not automatically updated because the react doues not knows it
we have to tell react to update the UI when the state updates through setState function
useState tells the react that state has been updated and update the component and its children in UI