Merge pull request #7195 from bolcom/composability-doc-fix

Small fix in the composability docs
This commit is contained in:
Ben Lambert
2021-09-15 16:09:10 +02:00
committed by GitHub
+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>
```