Lightning Web Components (LWC) is a framework for creating modern user interfaces on the web, mobile apps, and digital experiences on the Salesforce Platform. With LWC, developers can use W3C web standards to build custom HTML elements with JavaScript and HTML, applying foundational concepts like HTML templates and shadow DOM while working seamlessly with Salesforce data. LWC is backwards compatible with Aura components; they can coexist and interoperate on a page.
Write your Lightning web components using standard JavaScript syntax that's introduced in ECMAScript 6, such as modules, classes, promises, arrow functions, and more. LWC provides an abstraction layer for Web Component APIs and the LWC compiler transforms your code into standard Web Components.
Flexibility and Productivity
When creating user interfaces for Lightning Experience and a wide range of targets, you can test your code in scratch orgs before packaging and distributing them on AppExchange. Use your favorite code editor or Visual Studio Code with the Salesforce Extension Pack for a smoother development experience.
Customizable Lightning Base Components
Speed up your development by reusing pre-built modules and UI components. With Salesforce Lightning Design System styling on the base components, you can achieve functional and branding consistency easily while maximizing your time to focus on critical application logic.