In this lesson, we learn the basics of using the Vue Composition API setup method. setup
is executed before the component is created, once the props are resolved, and serves as the entry point for composition APIs.
In order to expose things from the setup method and to the other component options (data, methods, computed, etc) as well as to the template, we need to return them from the setup method.
Links