DEV Community

Discussion on: A Clean Way to Conditionally Render Components

Collapse
 
loucyx profile image
Lou Cyx • Edited

You don't have to take my word for this (even when I did this in the past, realized it was a mistake and stopped doing it), you can just google this "If" component approach. I'm not the only one that knows this isn't ideal because you're evaluating branches of logic even when you aren't actually going into them.