I am trying to create a switch HOC for conditional rendering which behaves like a switch statement in ReactTS
<Switch>
<Case condition={cond1}>
Hello
</Case>
<Case condition={cond2}>
World
</Case>
<Default>
Hi stranger
</Default>
</Switch>
If the cond1 is true, render "Hello".
If the cond1 is false but cond2 is true, render "World".
If both conditions are false, render "Hi stranger".