Chapter 5. Mixins and the DOM
In the previous chapter, we took a deep dive into React Forms. We took a look at building multiple components and interactivity between them, Controller and Uncontrolled Components, building Forms and Form elements, and Form events and handlers for the events. We build a form to capture cart-checkout flow and orders being placed in a multi-step form.
In this chapter, we will focus on abstracting content using mixins and touch upon DOM handling.
Here, we will cover the following points:
- Mixins
- PureRender mixin
- React and the DOM
- Refs
At the end of this chapter, we will be able to abstract and reuse logic across our components and learn how to handle DOM from within the components.
Back at the office
The duo was back at work. ...
Get ReactJS by Example - Building Modern Web Applications with 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.