DEV Community

zehra hindioğlu
zehra hindioğlu

Posted on

What is Single File Component?

In Vue, files with .vue extension are called Single File Component (SFC). These files offer a component-based structure by combining HTML, JavaScript and CSS in a single file.

1- Template (HTML):Defines the user interface of the component.
2- Script (JavaScript):Manages the logic and data of the component.
3- Style (CSS):Defines component-specific styles.

Image description

Top comments (0)