Summary
Throughout this chapter, we learned about composing components using the Composition API and the setup()
lifecycle hooks (or <script setup>
) as an alternative to the Options API. We also learned how to use different Composition functions to create watchers and lifecycle callbacks to control our components’ local states.
Finally, we learned how to create our custom composable function based on the Composition API and other composables, making our components more organized and readable in groups of similar logic.
In the next chapter, we will explore how we can create global components using plugins and mixins and compose dynamic components.