Introduction
State lets a React component remember information and change what it shows on the screen.
When you want to keep track of user input like typing in a form.
When you want to show or hide parts of the page based on user actions.
When you want to update a counter or timer that changes over time.
When you want to store choices a user makes, like selecting options.
When you want to refresh parts of the page without reloading everything.