5
Crafting Reusable Components
The aim of this chapter is to show you how to implement React components that serve more than just one purpose. After reading this chapter, you’ll feel confident about how to compose application features.
The chapter starts with a brief look at HTML elements and how they work in terms of helping to implement features versus having a high level of utility. Then, you’ll see the implementation of a monolithic component and discover the issues that it will cause down the road. The next section is devoted to re-implementing the monolithic component in such a way that the feature is composed of smaller components.
Finally, the chapter ends with a discussion of rendering trees of React components and gives you some tips ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access