๐Ÿ“šย Reference


๐Ÿ“œย Chapter


export & import

โ€ฃ

React Router

โ€ฃ

Vue Router


var Main = {template: '<div>main</div>'};
var Login = {template: '<div>login</div>'};

var router = new VueRouter({
	routes: [
		{path: '/main', component: Main},
		{path: '/login', component: Login},
]
});

์„ค์น˜


# NPM
npm install vue-router@4

# YARN
yarn add vue-router@4