🚆 Your First Component

Build a basic home page component with routing

Install the Vue Router

Routing Docs

command line
npm install vue-router

Configure a Basic Route

file_type_js main.js
import VueRouter from 'vue-router'

import Home from './components/Home'

const router = new VueRouter({
  routes: [
    { path: '/', component: Home },

new Vue({
  render: h => h(App),

Create the Home Page

  <div class="section">

Questions? Let's chat

Open Discord