Join Joe Chellman for an in-depth discussion in this video Implement props, part of React for Web Designers (2018).
- [Instructor] In this video, we're going…to implement props for the first time…and see how that one way data flow happens at a basic level.…So we've said that we need a top level…customizer component to own the data,…because the image needs to know the color of the sneaker,…and of course the color selecter,…when we eventually have one, is going to need…to know that as well.…So the state we care about will eventually come…from the product customizer and be passed…down to these child components as props.…Anything a child component needs, state, callback functions,…whatever, comes in as props.…
So switching back to the code.…Here's what we're going to do.…We're going to pass in things that we need…to these child components from the product customizer.…To start out, we're going to keep this super simple.…We're just going to pass in some hard coded props.…So for the product image, what we're going to need to know…is what color to display.…So let's set up a color prop.…We'll just pass in red.…And for the size selecter, we're going to need to know…
- 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.