// Before your return / render block you could write something like this: const ifThisOrThat = ifThis || ifThat; // then you can use it in your return / render block like so: { ifThisOrThat && <p>I will render ifThis or ifThat is true!</p> }