Small fix in the composability docs

Signed-off-by: Roy Jacobs <roy.jacobs@gmail.com>
This commit is contained in:
Roy Jacobs
2021-09-15 15:26:07 +02:00
parent 6ae454bc86
commit 1491c5e979
+2 -2
View File
@@ -442,14 +442,14 @@ component, you would do the following:
</EntitySwitch.Case>
<EntitySwitch.Case>
<MyTemplate />
<MyOther />
</EntitySwitch.Case>
</EntitySwitch>
// Shorter form if desired:
<EntitySwitch>
<EntitySwitch.Case if={isKind('template')} children={<MyTemplate />}/>
<EntitySwitch.Case children={<MyTemplate />}/>
<EntitySwitch.Case children={<MyOther />}/>
</EntitySwitch>
```