Lightning Component Framework – Salesforce Lightning Platform – Salesforce Certified Platform Developer I Study Guide

11.1  Lightning Component Framework

Lightning Component framework is a previous development framework provided by Salesforce for building dynamic and responsive web applications and user interfaces on the Salesforce platform. The Aura framework is the underlying technology that powers the Lightning Component framework. It’s a client-side framework that allows you to create reusable components, and it’s a fundamental part of Salesforce’s Lightning Experience, which provides a modern and streamlined user interface. The Lightning Component framework provides a lot of out-of-the-box components that can be reused, and it is an event-driven architecture. Components basic structure can contain HTML, CSS, JavaScript, SVG files, and Documentation.

Key features of the Lightning Component framework include

–– Component-Based Development: The framework is based on a component-based development model, where developers can create reusable components that encapsulate functionality and can be easily combined to build complex applications.

–– Event-Driven Architecture: Components in the Lightning Component framework communicate with each other using events, allowing for loose coupling and easier integration between components.

–– Easy Integration with Salesforce: The Lightning Component frame-work integrates seamlessly with the Salesforce platform, allowing developers to leverage the full power of Salesforce’s features and capabilities.

–– Responsive Design: The framework provides responsive design capabilities, enabling applications to adapt and provide an optimal user experience across different screen sizes and devices.

–– Low-Code and Pro-code Tools: Developers can use both low-code tools, such as Lightning App Builder, and pro-code tools, such as Apex, to increase productivity and customize applications according to specific business requirements.

–– Supported by Salesforce: The Lightning Component framework is still actively supported by Salesforce, ensuring regular updates, bug fixes, and compatibility with the latest Salesforce releases.

However Lightning Web Components offer as a new standard several advantages over Lightning Components, including improved performance and better integration with modern web standards.

Visualforce is an older framework that was introduced by Salesforce before Lightning Components has been in use for many years. It’s still used primarily with Salesforce Classic. It is based on the Model-View-Controller (MVC) architecture and uses a server-side rendering approach. But this topic is beyond the scope of this book.

11.2  Introducing the Lightning Web Components (LWC)

Lightning Web Components (LWC) is a UI framework developed by Salesforce for building web applications on the Salesforce platform. It was introduced as a new programming model for building Lightning components.

Prior to LWC, Salesforce developers primarily used Aura components, which were based on the Aura framework. While Aura components provided a powerful and flexible development environment, they also had some limitations in terms of performance and code reusability.

With the introduction of LWC, Salesforce aimed to provide a modern, lightweight, and efficient framework for building web components. LWC leverages standard web technologies like HTML, CSS, and JavaScript, and is built on top of the Web Components standard, which is supported by all major browsers.