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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.