Quiz Yourself on Performance Optimization
Test yourself on what you've learned so far.
1
What’s the correct way to lazy load a route component when using Vue Router?
A)
import Home from '../views/Home.vue'
B)
const Home = import('../views/Home.vue')
C)
const Home = () => import('../views/Home.vue')
D)
import { lazy } from 'vue'
const Home = lazy(() => import('../views/Home.vue'))
Question 1 of 90 attempted
Get hands-on with 1400+ tech skills courses.