DEV Community

Discussion on: A Clean Way to Conditionally Render Components

 
hvolschenk profile image
Hendrik Volschenk

I wanted to add the same comment about the content of the <If> being evaluated immediately
and got some quite surprising results.

See here: codesandbox.io/s/if-component-b5zxk

Thread Thread
 
anxiny profile image
Anxiny

Yes, a good example of how it works