11 Project: Website Menu
This chapter covers
- Creating the necessary scaffolding for a menu component
- Rendering a static website menu
- Homework adding advanced features to the menu
We have reached a milestone. With the completion of chapter 9, you now know all you need to know about React itself to actually start building some pretty complex web applications. This chapter and the next two chapters are all project chapters. These projects are much larger examples that guide you through the first steps of creating a full-featured web application and sets you up for creating more advanced variants of that same application.
The project in this chapter is a website menu. It is a top-bar menu component that you can directly use in a website. We're going to create this project in five steps. These are all outlined in figure 11.1.
Figure 11.1 We start this project with a scaffold, and over the steps in this chapter, we're going to build a fully-fledged dynamic menu with an optional link to a profile page.
![](https://drek4537l1klr.cloudfront.net/mardan2/v-7/Figures/11_01.png)
The scaffold is where you start out building this application. Each additional step of the application adds more advanced features to the menu while utilizing new parts of the React API. We're going to set up step 1 first in this chapter, and then we're going to solve step 2 together. From then on, we're only going to introduce the subsequent steps to you, and then you have to solve them yourself.