Components


Vue Documentation: Single File Component

  • Do SFC’s require a build step?
  • When and how is the build step performed?
  • What is a benefit of having JavaScript, HTML, and CSS for a component in the same .vue file?

Vue Documentation: SFC Syntax Specification

  • What three top-level blocks are typically found in .vue files?
  • What does setup in <script setup> denote?
  • How often is the code in <script setup> run?
  • What does scoped in <style scoped> denote?
  • How are comments written inside each top-level block?
  • How do we write comments outside the top-level blocks?

Vue Documentation: Component Registration

  • Which method do we call to globally register a component?
  • If a component is not globally registered and we’re using the Composition API, how can a component use another component?
  • What is the naming convention used for naming SFC files?