Salesforce Platform Developer I (legacy) — Question 71
Which three code lines are required to create a Lightning component on a Visualforce page? (Choose three.)
Answer options
- A. $Lightning.useComponent
- B. <apex:slds/>
- C. $Lightning.use
- D. <apex:includeLightning/>
- E. $Lightning.createComponent
Correct answer: C, D, E
Explanation
The correct answer includes $Lightning.use, <apex:includeLightning/>, and $Lightning.createComponent. These lines are essential for loading and using Lightning components on a Visualforce page. The other options, while related, do not fulfill the requirements for creating a Lightning component in this context.