Just make sure the condition evaluates to false or null - easiest thing to do is coerce to a Boolean with !! or Boolean(..). I’ve also seen a custom component for it - <ShowIf condition={…}><MyComponent aProp={getValue()} /></ShowIf> like SolidJS but this is a bad idea in React since functions inside the element are executed regardless which can cause unexpected exceptions if you didn’t think getValue() would execute if falsy. By contrary using a normal && condition will not execute that function.