Nowhere is mentioned what the syntax is for calling child components? #161
-
Nowhere is the syntax mentioned for using children, so components inside other vine templates? function A() {
return vine`<p>hello from A</p>`
}
function B() {
return vine`<div>${A()}</div>`
} Is just calling the function correct? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
No @ivanjeremic , please check what we mentioned in our docs: https://vue-vine.dev/specification/overview.html#template
The correct way to reference a child component it just the same as what you did in Vue SFC. function A() {
return vine`<p>hello from A</p>`
}
function B() {
return vine`
<div>hello from B</div>
<!-- ↓ Using A as a Vue component tag here -->
<A />
`
} |
Beta Was this translation helpful? Give feedback.
No @ivanjeremic , please check what we mentioned in our docs: https://vue-vine.dev/specification/overview.html#template
The correct way to reference a child component it just the same as what you did in Vue SFC.