Current section: Custom Components 59 exercises
Problem

Props

Loading exercise

Transcript

00:00 OK, let's get some more practice with custom components. We're going to have a calculator rendered here. It's not like a calculator with buttons and stuff. We're not quite that advanced with our React stuff yet. But we can make a component that can accept a left, an operator, and a right.

00:16 And that can render a div that has the code for one. So it'll be left, then operator, and then right, and then have an equal sign, and then have output for what the results of that should be. Some of this stuff is done for you.

00:33 Your job is mostly to focus on how these props work. So as a custom component author, you're going to be creating props a fair bit. So I think that you should have a pretty good, solid understanding of how to do that. So that's what this exercise is all about. We'll see you when you're done.