Chapter 3. Create Your First React Component

In the previous chapter, we learned how to create React elements and how to use them to render the HTML markup. You've seen how easy it is to produce React elements using JSX. At this point, you know enough about React in order to create the static web pages that we discussed in Chapter 2, Create Your First React Element. However, I bet that's not the reason why you've decided to learn React. You don't want to just build websites made of static HTML elements. You want to build interactive user interfaces that react to user and server events. What does it mean to react to an event? How can a static HTML element react? How can a React element react? In this chapter, we'll answer these questions and many ...

Get React.js Essentials 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.