Hello Salesforce Developers, sometimes we need to use the lightning component inside the vf page.Today we will learn how we can
include the lightning component inside a visualforce page.
Step 1: create a lightning component which you want to use inside a visualforce page.
Step 2:create a lightning application and include the lightning component inside the app like this

Step 3: Include <apex:includeLightning /> tag inside the visualforce page
Step 4: Add the below code after the <apex:includeLightning /> it is not mandatory to include after this tag

Step 5: Run your visualforce page
Lightning App:lcvfTest

Lightning Component:testcomponent2

Visualforce page:componentinvfpage

Leave a comment