Summary
In this chapter, we saw how to define an action. We talked about one of the common patterns of actions, which is to create custom events. This allows us to encapsulate DOM event logic into custom events and reuse them across elements.
In the next chapter, we will look at the next common pattern of actions, which is integrating third-party libraries.