Which approach can be used to accomplish this?
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.
Answer: D
Explanation:
To make a Lightning Web Component (LWC) available in Salesforce Classic, you can embed it in a Visualforce page using Lightning Out.
Option D: Use the Lightning Out JavaScript library to embed the Lightning Web Component in a Visualforce page and add to the page layout.
Lightning Out allows LWCs to be embedded in Visualforce pages.
The Visualforce page can then be included in Salesforce Classic interfaces.
Why Not Other Options:
Option A: Visualforce components cannot directly contain LWCs.
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.
Reference: 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
Latest DEX-450 Dumps Valid Version with 456 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund