Activity Forums Salesforce® Discussions What is the use of constructors in LWC?

  • Aditya

    Member
    December 22, 2020 at 7:37 am

    Hi,Constructor() method fires when a component instance is created. The constructor in LWC flows from parent to child which means Constructor of Parent component will get called first if you have parent child component composition.

  • Marziya

    Member
    December 22, 2020 at 12:37 pm

    Constructor() method fires when a component instance is created.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos

How to Learn Salesforce Development | Salesforce learning steps for beginners | Trailhead demo

Video in

In this video, we shared the steps to learn salesforce lightning basics, salesforce apex development, CRM in online for free from scratch very quickly. Learn salesforce…