Skip to content

Commit ea9b219

Browse files
committed
update(slots-unification): fix example
1 parent b7888b3 commit ea9b219

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

active-rfcs/0006-slots-unification.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,10 @@ The compiler can detect `v-slot` and compile content as functions, but in render
7777
Slots can be manually annotated so that Vue won't force the child to update when the parent updates:
7878

7979
``` js
80-
h(Comp, {
81-
slots: {
82-
$stable: true,
83-
foo: () => h('div', this.foo),
84-
bar: () => h('div', this.bar)
85-
}
80+
h(Comp, null, {
81+
$stable: true,
82+
foo: () => h('div', this.foo),
83+
bar: () => h('div', this.bar)
8684
})
8785
```
8886

0 commit comments

Comments
 (0)