Brand new going through the tutorial. Unsure of the purpose of the <Dynamic> component.
I feel like I'm missing something obvious. The tutorial page for the <Dynamic> component introduces it as a more compact alternative to a bunch of <Show> or <Switch> components. The "Solution" to the code wants me to replace a
Is it just a helper so it's easier to pass props? I come from React, so I would typically build a props object and spread it, i.e.
<Switch> with <Dynamic component={options[selected()]} />. But why do I even need <Dynamic>? See the full code below.Is it just a helper so it's easier to pass props? I come from React, so I would typically build a props object and spread it, i.e.
