Switch component to easy make conditional rendering
npm install react-switch-case-module
import { Switch, Case } from 'react-switch-case-module';
<Switch
componentName={'HelloComponent'}
defaultComponent={<div>Default component</div>}
>
<Case value={'HelloComponent'}><div>Hello</div></Case>
<Case value={'ByeComponent'}><div>Bye</div></Case>
</Switch>