LWC - Salesforce

Introduction


Welcome in Lightning Web Components Worlds. Here i'm starting the Lightning Web Component series for beginners, this may helps beginners and intermediate level learners to possess an honest knowledge of lightning web components.

            Introduction to LWC

Lightning Web Components are announced as part of Spring19 pre-release. As of now, we have built lightning component using the "Aura Components model" we can also built lightning component using the "Lightning Web Components model".

According to Salesforce, you can build Lightning components using two programming models: Lightning Web Components, and the original model, Aura Components. Lightning web components are custom HTML elements built using HTML and modern JavaScript. Lightning web components and Aura components can coexist and interoperate on a page. To admins and end users, they both appear as Lightning components.


LWC (Lightning Web Components)

Lightning Web Components is a new framework for building Lightning components. Lightning Web Components are custom HTML elements build using the HTML Elements and modern Javascript. We can built components using any of the model and can place these components on the same lightning page.

For developing LWC we require "Salesforce Extensions for Visual Studio Code" and for deploying LWC from an org we require "Salesforce CLI".

Aura Components make use of own custom component model, custom templates, custom components etc while LWC is built on web standards and it make use of web components, templates, custom elements which we have in web standards. Both Aura component, LWC make use of Security, LDS and Base lightning components.

 MIND IT !

1) Aura component and LWC can exist on Same lightning page.

2) Aura component can include LWC