Lighting Web Components :
Introduction :
Now every Salesforce user can develop lighting components in 2 ways.
1) Aura Components
2) Lighting Web Components (LWC)
What are Lighting Web Components ?
IT is a new programming model or new framework used to develop lighting components.Lighting Web Components developed using HTML and Javascript.
Setup required in Salesforce:
1) My Domain : Domain name is mandatory to create in Salesforce org.
2) Dev hub : Go to setup and enter Dev hub.In Dev hub click on Enable Dev hub. it is mandatory and once enabled we cannot disable it.
Tools Required to Start Lighting Web Components :
Below tools available for Windows, Linux, and macOS users.These are free tools available in market.
1) Salesforce CLI
2) VS Code
Salesforce CLI : Quick Steps : –
1) Go to https://developer.salesforce.com/tools/sfdxcli and download Salesforce CLI based on you Computer operating system.
2) After download go to command prompt and enter “Salesforce CLI”. It is used to check your CLI installed properly and gives latest version.
3) “Sfdx update” is used to update your local version with latest version.
VS Code : Quick Steps : – It is a free and open source editor for salesforce developers.
1) Download VS studio from https://code.visualstudio.com/
2) Go to left tool bar and click on Extensions
3) Search for “Salesforce Extension Pack” and click on Install.
What is the use of Lightning Web Components ?
1) Better Performance – most of the code understood by web browser it self.
2) Modern Web Standards – It is developed based on modern web standards.
3) Compatible with Aura Components – Lighting Web Components are compatible to use with Aura components respective to functionality and User Interface.
4) Ease of Use – Use in Communities, App Builder, Aura components, Lighting out.
5) Security
Create Blank Project in Lightning Web Components :
Go to -> Vs code Terminal and end below command :
Sfdx force:project:create -n “Project Name”
Please check Next posts for continue course.
