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