After using a traditional class component to write our app, we are going to write the same app using Hooks. As before, our app is going to let us enter a name, which we then display in our app.
Please note that it is only possible to use Hooks in React function components. You cannot use Hooks in a React class component!
We now start by setting up the project.