From the course: Building Production-Ready React Apps: Setup to Deployment with Firebase

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Solution: Breaking up the UI

Solution: Breaking up the UI

(upbeat music) - [Instructor] So let's see now the solution to the challenge, which is to break up the UI to learn to think in React. What we want here is to create small units in order to create the user interface of this navbar. We can see that we have a unit for the navigation, another search component, and another one which is used for the dropdown. So think of it as a construction game like the Legos. We're going to create and use small units in order to put everything together. We're going to put all the pieces together to create the user interface. So back in the source code, we're going to head directly into the navbar, and you can see already that this is quite complex because we have multiple lines of code, and we can easily separate several elements in order to keep things simple and tidy. For example, you have here an ordered list. This is used for the navigation to allow users to navigate between different…

Contents