Subscribe on changes!

Slots are not rendered when using JSX

avatar
Nov 11th 2020

Version

3.0.2

Reproduction link

https://pastebin.com/gbACH86E

Steps to reproduce

Just create 2 components written in JSX and try to use slot

What is expected?

The linked app should display "Bar"

What is actually happening?

The slot is not computed, and the JSX element "slot" can be spot when you inspect the source code


I'm sorry, I never managed to make JSX work with Vue next on any Fiddle website :(

avatar
Nov 11th 2020

Theres no <slot> element in JSX. Just run the slot function

{ slot.default() }