PDI · Question #223
In terms of the MVC paradigm, what are two advantages of implementing the view layer of a Salesforce application using Lightning Web Component-based development over Visualforce? Choose 2 answers
The correct answer is C. Self-contained and reusable units of an application D. Rich component ecosystem. Lightning Web Components offer significant advantages over Visualforce for the view layer, including their design as self-contained, reusable units and access to a rich, modern component ecosystem.
Question
In terms of the MVC paradigm, what are two advantages of implementing the view layer of a Salesforce application using Lightning Web Component-based development over Visualforce? Choose 2 answers
Options
- ALog capturing via the Debug Logs Setup page
- BBuilt-in standard and custom set controllers
- CSelf-contained and reusable units of an application
- DRich component ecosystem
How the community answered
(45 responses)- A4% (2)
- B9% (4)
- C87% (39)
Why each option
Lightning Web Components offer significant advantages over Visualforce for the view layer, including their design as self-contained, reusable units and access to a rich, modern component ecosystem.
Log capturing via the Debug Logs Setup page is available for both Visualforce and Lightning components (Apex controllers), so it's not an advantage specific to LWC over Visualforce for the view layer itself.
Built-in standard and custom set controllers are features of Visualforce (and Apex); LWCs interact with Apex controllers differently and do not directly use these Visualforce-specific controller types.
Lightning Web Components are built as self-contained, encapsulated, and reusable units, promoting modular development and making it easier to build complex UIs from smaller, independent pieces, a core benefit of modern web component architecture.
Lightning Web Components benefit from a rich component ecosystem, including both built-in base Lightning components and a growing community of open-source and third-party components, providing developers with a wide array of pre-built UI elements and functionalities.
Concept tested: Advantages of Lightning Web Components (LWC) over Visualforce for UI
Source: https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.development_differences
Topics
Community Discussion
No community discussion yet for this question.