From the course: Building Production-Ready React Apps: Setup to Deployment with Firebase
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Challenge: Thinking in React
From the course: Building Production-Ready React Apps: Setup to Deployment with Firebase
Challenge: Thinking in React
(upbeat digital music) - [Instructor] This is how the user interface looks like for now. We have a navigation bar and a gallery of images. The goal for this challenge is to learn to think in React. Learn to split and organize the code base into small chunks of code. Divide the user interface into small units and reusable components. So what you should keep in mind is that one component is one responsibility. One component should represent only one visual section of the entire UI. So we want to understand how to reuse components and pass data with the props to create reusable and flexible components. So the purpose here is to understand, not to keep a big file with a huge component with everything in it. Just like this navigation, it's very busy. We have a lot of things. We have a navigation, a search and a dropdown. So what we can see right here is that we have three separate components to make the navigation bar.…
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
-
-
-
-
-
-
-
-
-
-
-