Current section: Using JSX 59 exercises
Problem

Nesting JSX

Loading exercise

Transcript

00:00 All right, remember when we did this Sam's favorite food, green eggs and ham thing with CreateElement? That was intellectually stimulating. Well, now what we're going to do is do this in JSX and see how much of an improvement we get out of doing nesting with JSX

00:18 over what we were doing before. So that is your objective in this exercise. I think that you'll like it a lot better using JSX, and you'll find that you can actually almost copy-paste this. This will give us an opportunity to talk a little bit about some of the differences between HTML and JSX. So this should be a good time. We'll see you in a sec.