Making MessageList a slot based Component
In this lesson, we will be making MessageList a slot based component.
We'll cover the following
Slots are the way to make content distribution happen in the web components world. They make the structure of the components much more flexible, moving the responsibility of managing the state to the parent component. For example, we can have a List
component, and different kind of item components, such ListItem
and ListItemImage
. They’ll be used like:
Get hands-on with 1200+ tech skills courses.