Activity › Forums › Salesforce® Discussions › What is the use of constructors in LWC? Salesforce® Discussions What is the use of constructors in LWC? Posted by Shweta on December 21, 2020 at 4:18 PM What is the use of constructors in LWC? Marziya replied 5 years, 5 months ago 3 Members · 2 Replies 2 Replies 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. [adinserter block='9'] Marziya Member December 22, 2020 at 12:37 PM Constructor() method fires when a component instance is created. Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me