Join Joe Chellman for an in-depth discussion in this video Create new component with array data, part of React for Web Designers (2018).
- [Instructor] In this video, we're going to create a component…that has a little more complexity to it…because it's going to involve some actual external data.…Specifically, we're going to create the size selector.…So referring back to our mockup,…this is the component we're going to create right now,…this size selector.…Here we have a series of sizes…that's just hard coded in here.…But really, we'd be assuming that this information…would be coming from some sort of inventory system.…Maybe it's an external API or who knows what.…
We're going to cheat a little bit…just to make sure this doesn't get…too hellaciously complicated.…But we are going to have an external data source…that our component is going to draw from.…So let's start out by installing that little data source.…In the exercise files for this video…I've an inventory snippet.html script tag here.…So let's select that and copy it.…And now in my index.html file,…I'm going to drop this in right above my app.js.…So app.js will have access to it.…
We can command click this in…
- Identify notable features about how React works.
- Identify good early steps for any React project.
- Explain why the little PHP app that powers our API has a way to add delay.
- Outline what a lifecycle method is.
- Recall the React convention that must be followed when adding a status message.
- Explain the purpose of React.Fragment.
Skill Level Intermediate
1. Introducing React
2. First Project: Customizer
3. Second Project: Directory Browser
4. Third Project: Status Updater
Next steps: Lots more React2m 37s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.