A developer needs to make a custom Lightning Web Component available in the Salesforce Classic user interface. Which approach can be used to accomplish this?
A.
Embed the Lightning Web Component is a Visualforce Component and add directly to the page layout.
B.
Wrap the Lightning Web Component in an Aura Component and surface the Aura Component as a Visualforce tab.
C.
Use a Visualforce page with a custom controller to invoke the Lightning Web Component using a call to an Apex method.
D.
Use the Lightning Out JavaScript library to embed the Lightning Web Component in a Visualforce page and add to the page layout.
Option B: Wrapping an LWC in an Aura component and surfacing it as a Visualforce tab doesn't make it available on page layouts.
Option C: You cannot invoke an LWC from a Visualforce page using an Apex method call.
References:
Lightning Out for Visualforce:
"Lightning Out is a feature that extends Lightning components to any web page. Use it to embed Lightning web components in a Visualforce page."— Lightning Web Components Dev Guide: Use Lightning Web Components in Visualforce Pages
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit