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
From the course: Building Production-Ready React Apps: Setup to Deployment with Firebase
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Add Bootstrap 5 to your single-page application5m 1s
-
(Locked)
Build a responsive layout with Bootstrap 54m 59s
-
(Locked)
Build the UI and create reusable components5m 21s
-
(Locked)
Pass props to child components2m 42s
-
(Locked)
Challenge: Thinking in React1m 32s
-
(Locked)
Solution: Breaking up the UI4m 41s
-
-
-
-
-
-
-
-
-
-
-