LWC is a new programming model leveraging recent web standards. This framework is quite powerful and allows developers to do customization with the best approach. Web Standards and Specialized services like Base Lightning Components, Lightning Data Service, and User Interface API allow in achieving the Modern Rich UI Implementations in Salesforce.
Previously used framework AURA was used for current Lightning Components and it was based on standards of 2014. These were are outdated now and it was time for change because for the following reasons:
- Rendering could be optimized.
- Standard UI elements were scarce.
- Lacked modern constructs.
- Was not fit for modular apps.
- Web standards were updated.
- Has a root tag <template> which contains your component’s HTML.
- When renders, the <template> tag is replaced with <namespace-component-name>.
- The export statement allows other code to use functionality in a module.
- We extend LightningElement in the component and export, LightningElement is a custom wrapper of the standard HTML element.
XML file that defines the metadata configuration values for the component eg-
- Components Label
- Configuration Attributes
- Builder Attributes
- To style a component.
- The style sheet is applied automatically.
Leave A Comment