Now that we have implemented the static structure of our application, we are going to add useState Hooks to it, in order to be able to handle state and dynamic interactions!
Implementing stateful components with Hooks
Adding Hooks for the users feature
To add Hooks for the users feature, we are going to have to replace the static user value with a State Hook. Then, we need to adjust the value when we log in, register and log out.
Adjusting UserBar
Recall that when we created the UserBar component, we statically defined the user value. We are now going to replace this value...