Understanding of vue components

Components in vue are reusable Vue instances with a name. We can use this component as a custom element in a Vue root instance created with new Vue. They accept the same options as new Vue such as data, computed, watch, methods, and lifecycle hooks. An application will Organized in the form of a nested component tree: Personal understanding components can be divided into the following categories:
1. Access type container
2. Display type
3. Interactive type such as various enhanced form components, most of the UI Component libraries, such as element ui, are mainly based on interactive components. This type of component will have more complex interactive logic, but it is a very general component, so it usually emphasizes reuse.
4. The functional type is relatively abstract. , eg <router-view>, <transition>, exists as an extension, abstraction mechanism.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325724450&siteId=291194637