I have a React component which, based on some logic returns or .
How do I have to write a unit test w