In LWC we have if:true|false directive like we used aura:if in aura components. For conditional rendering we just need to add the if:true|false directive to a nested tag that encloses the conditional content.