When adding a legend to the arcgis-layer-list component as shown in the sample gives the following warning:
DEPRECATED - This widget is deprecated. Use the Legend component instead.
https://codepen.io/pen?editors=1000
Is there a recommended way to have the layer list component use the legend component, rather than the legend widget?