Activity Forums Salesforce® Discussions What is the use of renderIf in Salesforce lightning component?

  • Parul

    Member
    August 18, 2018 at 5:17 am

    Hello Anurag,

    aura:renderIf : If you expect to show the components for both the true and false states use renderif, and it would require a server round trip to instantiate the components that aren't initially rendered.

  • shariq

    Member
    September 14, 2018 at 10:47 pm

    Hi,

    It is basically used for show and hide the components.

    To add more - aura:renderIf  is deprecated as I read on developer.salesforce, use aura:if

    <aura:component>
    <aura:if isTrue="{!v.truthy}">
    True
    <aura:set attribute="else">
    False
    </aura:set>
    </aura:if>
    </aura:component>

    Hope this helps.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos