Activity Forums Salesforce® Discussions What is the use of create Components in Salesforce Lightning Component?

  • Prachi

    August 17, 2019 at 6:00 pm

    Hi Saddam,

    The $Lightning.createComponent() call creates a button with a “Press Me!” label. The button is inserted in a DOM element with the ID “lightning”. After the button is added and active on the page, the callback function is invoked and executes a console.log() statement. The callback receives the component created as its only argument.


Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos