3 ms·
It appears to be similar to Vue. The first snippet is the <media-object> component, and the second snippet is using the component. Everything inside the compone
by SparkyMcUnicorn 3y ago
It appears to be similar to Vue. The first snippet is the <media-object> component, and the second snippet is using the component. Everything inside the component tag goes into the slot.
- theogravity 3y agoI'm from a non-vue audience, so the context would be lost on someone like me.
- tipiirai 3y agoCan you clarify? Not sure I understand what you mean.
- theogravity 3y agoMy background is React, and I have no Vue experience at all. I only figured it out by looking at the previous section's code before slots to see that attribute and noticed that the slots example first snippet was missing the attribute I mentioned that would connect the pieces together