Nesting JSX
Loading "Nesting Jsx"
Run locally for transcripts
π¨βπΌ Remember when we created this with
createElement
?<div class="container">
<p>Here's Sam's favorite food:</p>
<ul class="sams-food">
<li>Green eggs</li>
<li>Ham</li>
</ul>
</div>
That was... intellectually stimulating π
. Well, now try doing the same thing
using JSX. I promise it'll be more fun this time.
π° Tip: remember
class
in JSX is className
.