Structural mode switching after Solid's <Switch>/<Match> and the ui-template switch/match grammar (named Match here: Switch is the toggle control): exactly the first matching branch is rendered; the rest never exist.
<Switch>
<Match>
switch
match
Match
Switch
<Match.Root on={view} fallback={<ListView />}> <Match.Case when='grid'> <GridView /> </Match.Case></Match.Root> Copy
<Match.Root on={view} fallback={<ListView />}> <Match.Case when='grid'> <GridView /> </Match.Case></Match.Root>
Structural mode switching after Solid's
<Switch>/<Match>and the ui-templateswitch/matchgrammar (namedMatchhere:Switchis the toggle control): exactly the first matching branch is rendered; the rest never exist.