Unified Slots and createElement

Learn how slots and the createElement function are treated differently in Vue 2 and Vue 3.

Unified slots

Slots and scoped slots were unified in Vue 3. The $scopedSlots property has been removed from Vue components. Instead, the $slots property exposes slots as functions. In Vue 2, slots were defined using the slot data property when using a render function.

Get hands-on with 1200+ tech skills courses.