The What, Why, and Hows of Lightning Web Components.
What are Lightning Web Components?
Benefits of Lightning Web Components?
Lightning Web Components uses core Web Components standards and provides only what’s necessary to perform well in browsers supported by Salesforce. Combining the Web Components programming model with the Salesforce metadata and services unleashes an unprecedented level of productivity.
What happened to the Lightning Components?
The original Lightning components are now referred to as “Aura Components”. To admins and end users, they both appear as Lightning components. You can still continue to build or use existing Aura components on any page in Lightning Experience. Lightning web components and Aura components can coexist and interoperate on a page.
How to build Lightning components now?
With the addition of Lightning Web Components, there are now two ways to build Lightning components:
- Aura Components, leveraging its own component model, templates, and modular development programming model.
- Lightning Web Components, built on top of the web standards breakthroughs of the last five years: web components, custom elements, etc.
You can consider migrating your Aura Components to Lightning Web Components, starting with the components that would benefit the most from the performance benefits of Lightning Web Components.
LWC is using a cutting-edge programming model that is built for the 2019 web stack from the ground up and that interoperates seamlessly with your existing code. With the combination of Lightning Web Components and Salesforce metadata, you get an unparalleled level of productivity and performance.