Open jiyuujin opened 4 years ago
Vue 2.x と比べがらっと変わる!
yarn add vue@next vue-router@next yarn add @vue/test-utils@next vue-cli-plugin-vue-next -D
import { createApp } from 'vue' import App from './App' // `vue-router` を使う場合 import router from './router' const app = createApp(App) app.use(router) app.mount('#app')
vue-router
import { createRouter, createWebHistory } from 'vue-router' import HelloWorld from '../components/HelloWorld' const routes = [ { path: '/', name: 'HelloWorld', component: HelloWorld } ] const router = createRouter({ history: createWebHistory(), linkActiveClass: 'active', routes }) export default router
https://github.com/vuejs/rfcs/issues/183
rc
https://github.com/vuejs/rfcs/issues/189
<Suspense>
<script setup>
<style vars>
You can confirm in https://github.com/jiyuujin/vue3-boilerplate/pull/4 exclude unit test
@storybook/vue@6.1
概要
Vue 2.x と比べがらっと変わる!
エントリーポイントの作成
vue-router
初期設定