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.

  • [adinserter block='9']
  • 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

Pros & Cons of Lightning Component vs. 3rd party frameworks in Salesforce UI development

Video in

Nikita drops by to share his invaluable experience of using popular 3rd party frameworks in Salesforce. http://media.blubrry.com/salesforceway/audio.xmcdn.com/group42/M05/25/57/wKgJ81rXk6XjaZIAAU_I_KtprFM998.m4a  

Skip to toolbar