Chapter 8. Scaling React components
This chapter covers
- Setting default properties for components
- Understanding React property types and validation
- Rendering children
- Creating higher-order components for code reuse
- Best practices: presentational versus container components
Thus far, we’ve covered how to create components and make them interactive, and work with user input (events and input elements). Using this knowledge will take you a long way in building sites with React components, but you’ll notice that certain annoyances keep cropping up. This is especially true for large projects when you rely on components created by other software engineers (open source contributors or your teammates).
For example, when you consume a component ...
Get React Quickly 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.