Join Joe Chellman for an in-depth discussion in this video Implement props, part of React for Web Designers.
- [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 selector, … 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. …
- Installing React on an existing site
- Thinking about a design in terms of components
- Creating fully-featured function components using Hooks
- Storing and retrieving data from an external RESTful API
- Employing third-party components for CSS animation
- Using conditional rendering
Skill Level Intermediate
Essentials of CSS for React Developerswith Eric Greene53m 31s Beginner
React.js Essential Training (2018)with Eve Porcello1h 25m Intermediate
Using the exercise files1m 2s
1. Introducing React
2. First Project: Customizer
3. Second Project: Directory Browser
4. Third Project: Status Updater
- 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.