SlideShare a Scribd company logo
Lightning Web
Components
Hello!
I am Amit Singh
I am here to give you some overview about
Lightning Web components
1. @cloudyamit
2. Sfdcpanther.com
3. https://www.youtube.com/c/SFDCPanther
2
Agenda
1. Why Lightning Web Component?
2. HTML5 Vanilla Components
a. 4 Pillars of Web Component
b. How templating works in Web components
3. Lightning Web Components
a. Hello Word Components
b. Call Apex From LWC
c. Communicate with Aura Components
1
Why LWC?
1. In 2014 Salesforce released a new feature called
salesforce lightning.
2. At that time Web components was not supported
by all browsers. So, many other framework came
in picture like angular,
3. Less browser support for Web Component API
and encapsulation.
4. Build reusable, scalable application in a very easy
and fast manner.
5. More standard and less framework.
4 Pillars of HTML
Components
1. Template
2. Custom template
3. Import
4. Shadow Dom
Why Templating
1. Method 1: Offscreen DOM
2. Method 2: Overloading script
Method 1: Offscreen
DOM
1. Using DOM
2. Nothing is rendered
3. Painful styling and theaming
4. Not inert(Network Request still made)
Method 2: Overloading
script
<script id="mytemplate" type="text/x-handlebars-
template">
<img src="logo.png">
<div class="comment"></div>
</script>
Lightning Web
Components
1. helloWorld Web Component
2. Call Apex class from LWC
3. Communicate between aura components and
LWC using event.
Resources
1. Salesforce Document :-
https://developer.salesforce.com/docs/component-
library/documentation/lwc
2. HTML 5 Vanilla Components :-
https://ayushgp.github.io/html-web-components-
using-vanilla-js/
3. Template in HTML5: -
https://www.html5rocks.com/en/tutorials/webcompon
ents/template/#toc-pillars
4. JavaScript ES6: -
https://medium.freecodecamp.org/write-less-do-
more-with-javascript-es6-5fd4a8e50ee2
Any questions?
You can find me at:
1. @cloudyamit
2. amitasinghsfdc@gmail.com
3. sfdcpanther@gmail.com

More Related Content

PPTX
Lightning Web Component in Salesforce
Jitendra Zaa
 
PPTX
An Introduction to Lightning Web Components
Mikkel Flindt Heisterberg
 
PPTX
Lightning web components - Introduction, component Lifecycle, Events, decorat...
Nidhi Sharma
 
PPTX
Introduction to lightning Web Component
Mohith Shrivastava
 
PPTX
Intro to Salesforce Lightning Web Components (LWC)
Roy Gilad
 
PPTX
Lightning web components
Cloud Analogy
 
PDF
Lwc presentation
Nithesh N
 
PDF
Introduction to Lightning Web Components
Bordeaux Salesforce Developer Group
 
Lightning Web Component in Salesforce
Jitendra Zaa
 
An Introduction to Lightning Web Components
Mikkel Flindt Heisterberg
 
Lightning web components - Introduction, component Lifecycle, Events, decorat...
Nidhi Sharma
 
Introduction to lightning Web Component
Mohith Shrivastava
 
Intro to Salesforce Lightning Web Components (LWC)
Roy Gilad
 
Lightning web components
Cloud Analogy
 
Lwc presentation
Nithesh N
 
Introduction to Lightning Web Components
Bordeaux Salesforce Developer Group
 

What's hot (20)

PDF
Lightning web components - Episode 1 - An Introduction
Salesforce Developers
 
PPTX
Getting Started with Lightning Web Components | LWC | Salesforce
Rahul Malhotra
 
PPTX
Lightning Web Component - LWC
Thierry TROUIN ☁
 
PPTX
Mastering the Lightning Framework - Part 1
Salesforce Developers
 
PPT
Enterprise Flex Using Cairngorm
Jaibeer Malik
 
PPTX
Salesforce DX for Non-Scratch Org
Amit Chaudhary
 
PPTX
Saleforce For Domino Dogs
Mark Myers
 
PPTX
SFDC Lightning Demo
Samar Saha
 
PPTX
24 Sitecore Tips that Every Sitecore Architect Needs to Know
Ashish Bansal
 
PDF
Low-Code Testing Tool
Niels de Bruijn
 
PPTX
Rits Brown Bag - Salesforce Lightning
Right IT Services
 
PDF
Real World SharePoint Framework and Azure Services
Brian Culver
 
PPT
Restful services with ColdFusion
ColdFusionConference
 
PDF
Practical management of development & QA environments for SharePoint 2013
SharePointRadi
 
PPTX
Salesforce Lightning workshop Hartford - 12 March
Jitendra Zaa
 
PPTX
Architecting Lightning Components for Community Builder
Michael Welburn
 
PDF
Easy REST Integrations with Lightning Components and Salesforce1
Salesforce Developers
 
PDF
Lightning Workshop London
Keir Bowden
 
PPTX
LDC Via building a new app
Mark Myers
 
PDF
Best practices in using Salesforce Metadata API
Sanchit Dua
 
Lightning web components - Episode 1 - An Introduction
Salesforce Developers
 
Getting Started with Lightning Web Components | LWC | Salesforce
Rahul Malhotra
 
Lightning Web Component - LWC
Thierry TROUIN ☁
 
Mastering the Lightning Framework - Part 1
Salesforce Developers
 
Enterprise Flex Using Cairngorm
Jaibeer Malik
 
Salesforce DX for Non-Scratch Org
Amit Chaudhary
 
Saleforce For Domino Dogs
Mark Myers
 
SFDC Lightning Demo
Samar Saha
 
24 Sitecore Tips that Every Sitecore Architect Needs to Know
Ashish Bansal
 
Low-Code Testing Tool
Niels de Bruijn
 
Rits Brown Bag - Salesforce Lightning
Right IT Services
 
Real World SharePoint Framework and Azure Services
Brian Culver
 
Restful services with ColdFusion
ColdFusionConference
 
Practical management of development & QA environments for SharePoint 2013
SharePointRadi
 
Salesforce Lightning workshop Hartford - 12 March
Jitendra Zaa
 
Architecting Lightning Components for Community Builder
Michael Welburn
 
Easy REST Integrations with Lightning Components and Salesforce1
Salesforce Developers
 
Lightning Workshop London
Keir Bowden
 
LDC Via building a new app
Mark Myers
 
Best practices in using Salesforce Metadata API
Sanchit Dua
 
Ad

Similar to Lightning web components (20)

PPTX
Lightning web components
Amit Chaudhary
 
PPTX
Introduction to lightning web component
Sudipta Deb ☁
 
PPTX
Lightning web components
Amit Chaudhary
 
PDF
Lightning Web Component Structure Benefit
qrsolutionsindia
 
PPTX
RVA intro to LWC- Salesforce Dev Week
Ohad Idan
 
PPTX
Implementing Vanilla Web Components
sonumanoj
 
PPTX
Intro to Lightning Web Components
Calvin LaBelle
 
PPTX
Episode 16 - Introduction to LWC
Jitendra Zaa
 
PDF
Salesforce Auckland Developer Meetup - May 2018 - Lightning Web Components
Ben Edwards
 
PPT
Migrate To Lightning Web Components from Aura framework to increase performance
Bohdan Dovhań
 
PDF
Intro to lwc - dev week slides
Sara Sali
 
PDF
What is Difference Between LC and LWC?
Ravendra Singh
 
PPTX
Lightning web component
Dhanik Sahni
 
PDF
Introducing Lightning Web Components
Peter Knolle
 
PPTX
Introduction to lightning components
Mohith Shrivastava
 
PPTX
Introduction to lightning components
Madan Khichi
 
PPTX
Lightning Web Components by Abdul Gafoor
Jayesh Tejwani
 
PPTX
Lightning Web Components
AbdulGafoor100
 
PPTX
Boston, MA Developer Group 2/7/2019 - Introduction to lightning web components
BingWang77
 
PPTX
Introduction to Lightning Web Component
SmritiSharan1
 
Lightning web components
Amit Chaudhary
 
Introduction to lightning web component
Sudipta Deb ☁
 
Lightning web components
Amit Chaudhary
 
Lightning Web Component Structure Benefit
qrsolutionsindia
 
RVA intro to LWC- Salesforce Dev Week
Ohad Idan
 
Implementing Vanilla Web Components
sonumanoj
 
Intro to Lightning Web Components
Calvin LaBelle
 
Episode 16 - Introduction to LWC
Jitendra Zaa
 
Salesforce Auckland Developer Meetup - May 2018 - Lightning Web Components
Ben Edwards
 
Migrate To Lightning Web Components from Aura framework to increase performance
Bohdan Dovhań
 
Intro to lwc - dev week slides
Sara Sali
 
What is Difference Between LC and LWC?
Ravendra Singh
 
Lightning web component
Dhanik Sahni
 
Introducing Lightning Web Components
Peter Knolle
 
Introduction to lightning components
Mohith Shrivastava
 
Introduction to lightning components
Madan Khichi
 
Lightning Web Components by Abdul Gafoor
Jayesh Tejwani
 
Lightning Web Components
AbdulGafoor100
 
Boston, MA Developer Group 2/7/2019 - Introduction to lightning web components
BingWang77
 
Introduction to Lightning Web Component
SmritiSharan1
 
Ad

More from Amit Singh (19)

PPTX
CI CD Daridabad MuleSoft meetup
Amit Singh
 
PPTX
Custom MuleSoft connector using Java SDK
Amit Singh
 
PPTX
External services low code integration
Amit Singh
 
PPTX
Faridabad Mulesoft Meetup Oct 10
Amit Singh
 
PPT
Error Handling in Mulesoft
Amit Singh
 
PPTX
Mule Testing in Mulesfoft 4.X
Amit Singh
 
PDF
Test setup methods in Salesforce Apex Class
Amit Singh
 
PDF
Apex trigger framework Salesforce #ApexTrigger #Salesforce #SFDCPanther
Amit Singh
 
PDF
Apex trigger handler & helper
Amit Singh
 
PDF
Rollup Summary Trigger for Lookup Relationship Salesforce #Salesforce #ApexTr...
Amit Singh
 
PDF
Duplicate Contact Trigger || Trigger Logic Building || #ApexTrigger #Salesforce
Amit Singh
 
PDF
OAuth 2.0 an Overview
Amit Singh
 
PDF
All About Test Class in #Salesforce
Amit Singh
 
PPTX
Salesforce apex hours PayPal with Salesforce Integration
Amit Singh
 
PPTX
SOQL in salesforce || Salesforce Object Query Language || Salesforce
Amit Singh
 
PPTX
Introduction to apex trigger context variables
Amit Singh
 
PPTX
Introduction to apex triggers
Amit Singh
 
PPTX
Salesforce apex hours azure dev ops
Amit Singh
 
PPTX
Salesforce apex hours azure active directory seamless single sign-on with s...
Amit Singh
 
CI CD Daridabad MuleSoft meetup
Amit Singh
 
Custom MuleSoft connector using Java SDK
Amit Singh
 
External services low code integration
Amit Singh
 
Faridabad Mulesoft Meetup Oct 10
Amit Singh
 
Error Handling in Mulesoft
Amit Singh
 
Mule Testing in Mulesfoft 4.X
Amit Singh
 
Test setup methods in Salesforce Apex Class
Amit Singh
 
Apex trigger framework Salesforce #ApexTrigger #Salesforce #SFDCPanther
Amit Singh
 
Apex trigger handler & helper
Amit Singh
 
Rollup Summary Trigger for Lookup Relationship Salesforce #Salesforce #ApexTr...
Amit Singh
 
Duplicate Contact Trigger || Trigger Logic Building || #ApexTrigger #Salesforce
Amit Singh
 
OAuth 2.0 an Overview
Amit Singh
 
All About Test Class in #Salesforce
Amit Singh
 
Salesforce apex hours PayPal with Salesforce Integration
Amit Singh
 
SOQL in salesforce || Salesforce Object Query Language || Salesforce
Amit Singh
 
Introduction to apex trigger context variables
Amit Singh
 
Introduction to apex triggers
Amit Singh
 
Salesforce apex hours azure dev ops
Amit Singh
 
Salesforce apex hours azure active directory seamless single sign-on with s...
Amit Singh
 

Recently uploaded (20)

PDF
Key Features to Look for in Arizona App Development Services
Net-Craft.com
 
PPTX
GALILEO CRS SYSTEM | GALILEO TRAVEL SOFTWARE
philipnathen82
 
PPTX
Presentation about variables and constant.pptx
safalsingh810
 
PPTX
TRAVEL APIs | WHITE LABEL TRAVEL API | TOP TRAVEL APIs
philipnathen82
 
PPT
Activate_Methodology_Summary presentatio
annapureddyn
 
PPTX
Odoo Integration Services by Candidroot Solutions
CandidRoot Solutions Private Limited
 
PDF
Using licensed Data Loss Prevention (DLP) as a strategic proactive data secur...
Q-Advise
 
PPTX
Contractor Management Platform and Software Solution for Compliance
SHEQ Network Limited
 
PDF
Adobe Illustrator Crack Full Download (Latest Version 2025) Pre-Activated
imang66g
 
PDF
Salesforce Implementation Services Provider.pdf
VALiNTRY360
 
PPTX
Presentation about Database and Database Administrator
abhishekchauhan86963
 
PDF
WatchTraderHub - Watch Dealer software with inventory management and multi-ch...
WatchDealer Pavel
 
PPTX
Visualising Data with Scatterplots in IBM SPSS Statistics.pptx
Version 1 Analytics
 
PDF
Generating Union types w/ Static Analysis
K. Matthew Dupree
 
PDF
Protecting the Digital World Cyber Securit
dnthakkar16
 
PDF
Exploring AI Agents in Process Industries
amoreira6
 
PDF
New Download MiniTool Partition Wizard Crack Latest Version 2025
imang66g
 
PDF
Applitools Platform Pulse: What's New and What's Coming - July 2025
Applitools
 
PPTX
ASSIGNMENT_1[1][1][1][1][1] (1) variables.pptx
kr2589474
 
PPTX
Explanation about Structures in C language.pptx
Veeral Rathod
 
Key Features to Look for in Arizona App Development Services
Net-Craft.com
 
GALILEO CRS SYSTEM | GALILEO TRAVEL SOFTWARE
philipnathen82
 
Presentation about variables and constant.pptx
safalsingh810
 
TRAVEL APIs | WHITE LABEL TRAVEL API | TOP TRAVEL APIs
philipnathen82
 
Activate_Methodology_Summary presentatio
annapureddyn
 
Odoo Integration Services by Candidroot Solutions
CandidRoot Solutions Private Limited
 
Using licensed Data Loss Prevention (DLP) as a strategic proactive data secur...
Q-Advise
 
Contractor Management Platform and Software Solution for Compliance
SHEQ Network Limited
 
Adobe Illustrator Crack Full Download (Latest Version 2025) Pre-Activated
imang66g
 
Salesforce Implementation Services Provider.pdf
VALiNTRY360
 
Presentation about Database and Database Administrator
abhishekchauhan86963
 
WatchTraderHub - Watch Dealer software with inventory management and multi-ch...
WatchDealer Pavel
 
Visualising Data with Scatterplots in IBM SPSS Statistics.pptx
Version 1 Analytics
 
Generating Union types w/ Static Analysis
K. Matthew Dupree
 
Protecting the Digital World Cyber Securit
dnthakkar16
 
Exploring AI Agents in Process Industries
amoreira6
 
New Download MiniTool Partition Wizard Crack Latest Version 2025
imang66g
 
Applitools Platform Pulse: What's New and What's Coming - July 2025
Applitools
 
ASSIGNMENT_1[1][1][1][1][1] (1) variables.pptx
kr2589474
 
Explanation about Structures in C language.pptx
Veeral Rathod
 

Lightning web components

  • 2. Hello! I am Amit Singh I am here to give you some overview about Lightning Web components 1. @cloudyamit 2. Sfdcpanther.com 3. https://www.youtube.com/c/SFDCPanther 2
  • 3. Agenda 1. Why Lightning Web Component? 2. HTML5 Vanilla Components a. 4 Pillars of Web Component b. How templating works in Web components 3. Lightning Web Components a. Hello Word Components b. Call Apex From LWC c. Communicate with Aura Components 1
  • 4. Why LWC? 1. In 2014 Salesforce released a new feature called salesforce lightning. 2. At that time Web components was not supported by all browsers. So, many other framework came in picture like angular, 3. Less browser support for Web Component API and encapsulation. 4. Build reusable, scalable application in a very easy and fast manner. 5. More standard and less framework.
  • 5. 4 Pillars of HTML Components 1. Template 2. Custom template 3. Import 4. Shadow Dom
  • 6. Why Templating 1. Method 1: Offscreen DOM 2. Method 2: Overloading script
  • 7. Method 1: Offscreen DOM 1. Using DOM 2. Nothing is rendered 3. Painful styling and theaming 4. Not inert(Network Request still made)
  • 8. Method 2: Overloading script <script id="mytemplate" type="text/x-handlebars- template"> <img src="logo.png"> <div class="comment"></div> </script>
  • 9. Lightning Web Components 1. helloWorld Web Component 2. Call Apex class from LWC 3. Communicate between aura components and LWC using event.
  • 10. Resources 1. Salesforce Document :- https://developer.salesforce.com/docs/component- library/documentation/lwc 2. HTML 5 Vanilla Components :- https://ayushgp.github.io/html-web-components- using-vanilla-js/ 3. Template in HTML5: - https://www.html5rocks.com/en/tutorials/webcompon ents/template/#toc-pillars 4. JavaScript ES6: - https://medium.freecodecamp.org/write-less-do- more-with-javascript-es6-5fd4a8e50ee2