7. Meet JSX—Again!
As you probably noticed by now, we’ve been using a lot of JSX in the previous chapters. What we really haven’t done is taken a good look at what JSX actually is. How does it actually work? Why do we not just call it HTML? What quirks does it have up its sleeve? In this chapter, we answer all of those questions and more! We do some serious backtracking (and some forwardtracking!) to get a deeper look at what we need to know about JSX in order to be dangerous.
What Happens with JSX?
One of the biggest things we’ve glossed over is trying to figure out what happens with our JSX after we’ve written it. How does it end up as HTML that we see in our browser? Take a look at the following example where we define a component called ...
Get Learning React now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.