5. Creating Complex Components

In Chapter 3, you learned about components and all the awesome things that they do. You learned that components are the primary ways through which React enables our visual elements to behave like little reusable bricks that contain all of the HTML, JavaScript, and styling needed to run themselves. Beyond reusability, there is another major advantage components bring to the table. They make possible composability. You can combine components to create more complex components.

In this chapter, we look at what all of this means. More specifically, we look at two things:

Image The boring technical stuff that you need to know. ...

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.