8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b38dd36 commit ee939b3Copy full SHA for ee939b3
active-rfcs/0028-router-active-link.md
@@ -118,11 +118,16 @@ Note: **This behavior is different from actual behavior**.
118
It's worth noting, it is possible to nest them to still benefit from links being _active_:
119
120
```js
121
+// Vue 3
122
+import { h } from 'vue'
123
+import { RouterView } from 'vue-router'
124
+
125
const routes = [
126
{
127
path: '/movies',
128
// we need this to render the children (see note below)
- component: { render: () => h('RouterView') },
129
+ component: { render: () => h(RouterView) },
130
+ // for vue 2 use render: h => h('RouterView')
131
children: [
132
{ path: 'new' },
133
// different child
0 commit comments