This describes the need of hooks in React with Example.
There is simple app having counter with Submit button.
You can increment the counter by clicking the button. But the incremented value does not take effect on UI (it is rendered before)
Enter -> Hooks - userState.