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.
Inspecting your starting React code - React.js Tutorial
From the course: React for Web Designers
Inspecting your starting React code
- [Instructor] We've gone through the steps of converting a mock-up into React components a couple times already. So this time, we're going to start with a fair amount of code already written so we can skip ahead to some of the newer aspects that we haven't seen before. Let's take a little tour of what we have. First of all, I want to make sure you've dropped your Work in Progress folder into PrePros. It should probably look something like this. And you'll just want to check the configuration of the hotel.js file to make sure it's auto-compiling, with source maps if you want them, and Babel, of course. And make sure that the hotel-dist file is not having anything happen to it because we don't need a second reprocessed version of this since hotel.js will be creating it for us. Switching over to my editor, I have the index.html file open. Let's scroll down all the way to my script tags. Of course I have my React tags down here and my hotel-dist JavaScript file. So I'm loading the…
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 live data from a RESTful API4m 40s
-
(Locked)
Inspecting your starting React code5m 9s
-
(Locked)
First API call with useEffect hook5m 10s
-
(Locked)
Using conditional rendering4m 36s
-
(Locked)
Bring form fields under control3m 3s
-
(Locked)
Let form post to the API3m 25s
-
(Locked)
Lifting state for data visibility2m 48s
-
(Locked)
Completing the status updater3m 20s
-
(Locked)
-