Component Structure and Child Components with Props

Learn about the component structure in Vue, including the usage of child components and props.

Component structure

If we explore the files and directory structure that the Vue CLI has generated for our application, we will notice three top-level directories named node_modules, public, and src.

Outside of the node_modules directory, which contains the modules required to generate the application, the public directory contains the index.html file, and all other Vue files are housed in the src directory. If we examine the src directory, we will notice a main.ts file with the following contents:

Get hands-on with 1400+ tech skills courses.