Table of Contents
What are Web Components?
Lightning Components can be built using Lightning Web Components and Aura components. It is a lightweight framework provided by Salesforce to create the components in an efficient way.
What is Lightning Web Component?
helloWorld.html is the Html file
Benefits of Lightning Web Component
- Ease of Deployment:
After building a lightning web component, even a salesforce admin can deploy it within the application with ease. No need for a developer to do this job.
- Easy to Build:
It is now more secure as it has a Shadow DOM feature implemented in it.
- Light-Weight and Faster:
The Lightning Web Components are Light Weight and runs quickly on any browser.
How to Choose Lightning Web Components or Aura
As it is simple to develop Lighting Web Components, it’s always better to choose a Lighting Web Component. Then there might be a question why Aura?
We go to Aura as LWC doesn’t support all the features in Aura, so when you want to create something more than LWC we use Aura Components.
LWC components can be created and Wrapped in Aura Components for better features in a simple way.