From the course: React for Web Designers
Unlock this course with a free trial
Join today to access over 22,600 courses taught by industry experts.
Scaffold initial components - React.js Tutorial
From the course: React for Web Designers
Scaffold initial components
- [Instructor] In this video, we're going to start scaffolding out the components we need to build up our Company Directory app. To recap, we need one big directory component to wrap everything. We'll have a filters component, a people component, which is going to contain person components. So we're going to need to work with four components. Let's start with the big one first, the company directory. Currently, we have pretty much nothing going on in our index.html file. So let's start working on the script to change that. I have my directory.js file open here. So the first thing I want to do is set up a place where these components can be rendered when they're finished. So just as we've seen before, we'll use ReactDOM.render. And we need our component here, which will be a Directory. This is just what we'll choose to call it this time. And then we need a place to put it. So we'll use document.getElementById. And we need to retrieve the right ID from our index.html file. Down here on…
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
-
-
-
-
-
(Locked)
Use the mockup, make a plan6m 9s
-
(Locked)
Scaffold initial components5m 58s
-
(Locked)
Functional components6m 37s
-
(Locked)
Build the filters form5m 41s
-
(Locked)
Forms in React: Controlled or not2m 53s
-
(Locked)
Wire up the filters form10m 57s
-
(Locked)
Respond to filter form updates5m 33s
-
(Locked)
Animating with ReactTransitionGroup8m 21s
-
(Locked)
Challenge: Better usability and animation3m 11s
-
(Locked)
Solution: Better usability and animation5m
-
(Locked)
-
-