using if-else or switch is considered as ugly coding. Although we can’t avoid that often but we should at least try. And React has provided us with this feature of conditional rendering which is helping us automatically to avoid if-else. So why not?

Passionate about Clean code and SOLID Architecture