CRT-450 practice question 4 of 30
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?
Full set: 201 questionsThe officially sanctioned method for displaying a Lightning Web Component (LWC) within the Salesforce Classic UI is to use the Lightning Out JavaScript library. This technology is specifically designed to surface Lightning components (both Aura and LWC) in an external container, such as a Visualforce page. The process involves referencing a Lightning dependency app from the Visualforce page and then using the $Lightning.use() and $Lightning.createComponent() JavaScript functions to dynamically create and display the component within the page. This Visualforce page can then be embedded into a standard page layout in Classic.
1. Lightning Web Components Developer Guide: The section "Use Lightning Web Components in Visualforce Pages" details the process. It explicitly states
"To use a Lightning web component in a Visualforce page
embed it in a Lightning Aura component. Then
use Lightning Out to surface the Aura component in Visualforce." This confirms that Lightning Out is the core technology (supporting B) and that an Aura wrapper is a necessary step (making D a partial but less complete answer).
Source: Salesforce
Lightning Web Components Developer Guide
"Use Lightning Web Components in Visualforce Pages".
2. Lightning Aura Components Developer Guide: The "Communicate with a Visualforce Page" section describes the use of $Lightning.createComponent(). It states
"Dynamically create a component on a page by calling $Lightning.createComponent() after the Lightning Out app has loaded." This highlights the central role of the Lightning Out JavaScript library.
Source: Salesforce
Lightning Aura Components Developer Guide
"Lightning Out Dependencies"
"Communicate with a Visualforce Page".
3. Visualforce Developer Guide: The documentation on tag confirms its purpose: "Use this component to include Lightning Components for Visualforce in a Visualforce page." This tag is the entry point for using the Lightning Out library within Visualforce.
Source: Salesforce
Visualforce Developer Guide
"Component Reference"
.
Keep practicing
Take the free CRT-450 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other CRT-450 practice questions
- Question 2A developer created a child Lightning web component nested inside a parent Lightning web …
- Question 6Given the following Apex statement: Account myAccount = [SELECT Id, Name FROM Account); W…
- Question 8Which action causes a before trigger to fire by default for Accounts?
- Question 9Universal Containers (UC) wants to lower its shipping cost while making the shipping proc…
- Question 10A custom picklist field, Pool Preference ¢, exists on a custom object. The picklist conta…
- Question 11Universal Containers decides to use exclusively declarative development to build out a ne…
