3 ms·
They're different things, though with an extremely simple component they might achieve a relatively similar goal. The downside of `is` is that you can only spec
by jjcm 3y ago
They're different things, though with an extremely simple component they might achieve a relatively similar goal. The downside of `is` is that you can only specify a single element to map to the component. An example of why you'd need to take the slotted approach is if you had something like this:
<user-avatar>
<img slot="image" src="...">
<div slot="name">Bob Bobson</div>
</user-avatar>