# Basics of Vuejs # example of creating a vue component
Creating a Vue component typically involves defining its template, script (logic), and optional styles within a Single-File Component (SFC) using the `.vue` extension.
Here is an example of a simple button counter component:
`ButtonCounter.vue`
Code
``` ```
Explanation:
-
`