This video covers how sometimes you'll need to render a component when certain conditions apply, and you'll need to use conditionals that return expressions.
- In the last video, we saw that we can do certain things…whenever conditions apply.…So for example, in home dot js, we are showing these…different buttons depending on the value of a variable.…Now this variable happens to be a prop,…that we pass along right here.…So we can do the same thing to show or hide…different components and that's actually…a pretty good technique when you are working with react.…So let's figure out to do that.…It's going to be pretty easy, but to do this…we are going to create a new component.…
We're going to call this welcome dot js,…and it's going to do the traditional thing,…so I'm going to go into home dot js, and…copy that one,…and then bring it into this new welcome dot js.…Paste that in there, and I'm going to get rid of…all of the HTML, because it's going to be a lot simpler.…So when you copy a component, and this is a…pretty common thing to start a new component,…you do need to change a few things.…Obviously this class will now be welcome,…and we are no longer going to need this css right here,…
- Integrating Firebase
- Managing state in forms
- Registering users
- Logging users in and out
- Creating, editing, and deleting records from Firebase
- Filtering and searching data
Skill Level Intermediate
1. Getting Started
2. Routing and Connecting to a Database
3. Registering and Logging In Users
4. Working with Firebase Data
5. Working with Attendees
6. Filtering and Searching
Next steps1m 22s
- 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.