SlideShare a Scribd company logo
2
Most read
3
Most read
7
Most read
Welcome
What is Web component
It is not a single technology rather is a suite of different technologies allowing us to create
reusable custom elements — with their functionality encapsulated away from the rest of our
code — and utilize them in your web apps.
It does not need 3rd party library or framework, it is pure web technology that can be used with
other existing framework like React, Vue, Angular even without any framework
Why Web component
- Encapsulate business logic and UI
- Highly reusable across project even among multiple projects with different web
frameworks
- Pure web technology, so we can use with any project without any framework
- Same component can be used in vue, react, Angular and other framework also
Web Component
Custom HTML
Element:
Register our own
HTML tag
Shadow DOM:
Manage a separate
DOM node tree
HTML templates:
The <template>
and <slot>
elements enable
you to write
markup templates
HTML Import
Discontinued due to
modern dev tool
provide good
solution
Types of Custom Element
1. Autonomous Element which does not depend on any other element
2. Extended Built-in elements
Web component
Web component
Web Component Lifecycle
Custom Element Vue.js React Class based component
constructor Created for component, bind for
custom directive
constructor
connectedCallback mounted componentDidMount
attribureChangedCallback updated componentDidUpdate
disconnectedCallback unmounted componentWillUnmount (similar
but not exact)
Custom element’s Callback methods compared to Vue.js &
React
Time for real coding
● DataFormsJS — Open source web components library — Set of Web Components that can be used to build Single Page
Apps (SPA), Display JSON data from API’s and Web Services, and bind data to different elements on screen. All Web
Components are plain JavaScript and require no build process.
● FAST is a web component library built by Microsoft which offers several packages to leverage depending on your project
needs. Fast Element is a lightweight means to easily build performant, memory-efficient, standards-compliant Web
Components. Fast Foundation is a library of Web Component classes, templates, and other utilities built on fast-element
intended to be composed into registered Web Components.
● Hybrids — Open source web components library, which favors plain objects and pure functions over class and this syntax.
It provides a simple and functional API for creating custom elements.
● Lit — Google's web components library, the core of which is a component base class designed to reduce boilerplate while
providing reactive state, scoped styles, and a declarative template system.
● Snuggsi — Easy Web Components in ~1kB Including polyfill — All you need is a browser and basic understanding of HTML,
CSS, and JavaScript classes to be productive.
● Slim.js — Open source web components library — a high-performant library for rapid and easy component authoring;
extensible and pluggable and cross-framework compatible.
● Stencil — Toolchain for building reusable, scalable design systems in web components.
References & Further reading
- https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements
- https://developers.google.com/web/fundamentals/web-components/customelements
- https://html.spec.whatwg.org/multipage/custom-elements.html
- https://www.html5rocks.com/en/tutorials/webcomponents/customelements/
- https://github.com/WICG/webcomponents
- https://www.webcomponents.org/
- https://github.com/engr-hasanuzzaman/funwith-web-
component/tree/master/custom_components
Questions session
Thanks for you Time

More Related Content

PDF
Introduction to Web Components
PPTX
Introduction to lightning components
PPTX
Selenium WebDriver training
PPTX
Salesforce Developer Console ppt
PPTX
Maven ppt
PDF
Ram Kumar - Sr. Certified Mule ESB Integration Developer
PPTX
Rethinking Best Practices
PPTX
Web Performance: 3 Stages to Success
Introduction to Web Components
Introduction to lightning components
Selenium WebDriver training
Salesforce Developer Console ppt
Maven ppt
Ram Kumar - Sr. Certified Mule ESB Integration Developer
Rethinking Best Practices
Web Performance: 3 Stages to Success

What's hot (20)

PDF
Introduction to Automation Testing and Selenium overiew
PDF
Development Best Practices
PPT
Test Automation Framework Designs
PDF
Selenium WebDriver with C#
PPTX
Lightning Web Components
PDF
Web Components Everywhere
PPTX
Test Automation and Selenium
PDF
What is WebElement in Selenium | Web Elements & Element Locators | Edureka
PPTX
Lightning Component - Components, Actions and Events
PPTX
Test automation using selenium
PPTX
Adobe Meetup AEM Architecture Sydney 2015
PPTX
Introduction to Lightning Web Component
PDF
Node.js BFFs - our way to the better/micro frontends
PPT
Jsp sasidhar
PPTX
Self-learned Relevancy with Apache Solr
PPTX
AEM Rich Text Editor (RTE) Deep Dive
PPTX
Kanban Methodology
PPTX
Getting started with data.com duplicate management
PDF
Page Object Model and Implementation in Selenium
PPTX
JAMStack
Introduction to Automation Testing and Selenium overiew
Development Best Practices
Test Automation Framework Designs
Selenium WebDriver with C#
Lightning Web Components
Web Components Everywhere
Test Automation and Selenium
What is WebElement in Selenium | Web Elements & Element Locators | Edureka
Lightning Component - Components, Actions and Events
Test automation using selenium
Adobe Meetup AEM Architecture Sydney 2015
Introduction to Lightning Web Component
Node.js BFFs - our way to the better/micro frontends
Jsp sasidhar
Self-learned Relevancy with Apache Solr
AEM Rich Text Editor (RTE) Deep Dive
Kanban Methodology
Getting started with data.com duplicate management
Page Object Model and Implementation in Selenium
JAMStack
Ad

Similar to Web component (20)

PDF
JEE Conf 2015: Less JS!
PPTX
Frontend_Frameworks_and_Libraries[1][1].pptx
PPTX
Web components
PPTX
Javascript frameworks
DOCX
Top 10 Javascript Frameworks For Easy Web Development
PPT
Top java script frameworks ppt
PDF
Top Web Development Frameworks Comparison: All You Need To Know
PPTX
Choosing your frontend web framework.pptx
PPTX
codeigniter
PPTX
PoV: How does React compare to Angular in 2024
PDF
Asp.NETZERO - A Workshop Presentation by Citytech Software
PPT
Symfony - A Bird's Eye View
PDF
IRJET- Polymer Javascript
PPTX
SharePoint Framework -The future of SharePoint/ Office 365 developer ecosystem.
PPTX
Lightning Web Component - LWC
DOC
George Jordanov CV
PPTX
Getting Started with Lightning Web Components | LWC | Salesforce
PPTX
Lecture 9 - ReactJs.pptx
PDF
Introduction to Lightning Web Components
PPT
Introduction To Symfony
JEE Conf 2015: Less JS!
Frontend_Frameworks_and_Libraries[1][1].pptx
Web components
Javascript frameworks
Top 10 Javascript Frameworks For Easy Web Development
Top java script frameworks ppt
Top Web Development Frameworks Comparison: All You Need To Know
Choosing your frontend web framework.pptx
codeigniter
PoV: How does React compare to Angular in 2024
Asp.NETZERO - A Workshop Presentation by Citytech Software
Symfony - A Bird's Eye View
IRJET- Polymer Javascript
SharePoint Framework -The future of SharePoint/ Office 365 developer ecosystem.
Lightning Web Component - LWC
George Jordanov CV
Getting Started with Lightning Web Components | LWC | Salesforce
Lecture 9 - ReactJs.pptx
Introduction to Lightning Web Components
Introduction To Symfony
Ad

Recently uploaded (20)

PDF
Digital Strategies for Manufacturing Companies
PDF
Nekopoi APK 2025 free lastest update
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
System and Network Administraation Chapter 3
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PPTX
Odoo POS Development Services by CandidRoot Solutions
PPTX
Transform Your Business with a Software ERP System
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PPTX
L1 - Introduction to python Backend.pptx
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
System and Network Administration Chapter 2
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PPT
Introduction Database Management System for Course Database
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Digital Strategies for Manufacturing Companies
Nekopoi APK 2025 free lastest update
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
How Creative Agencies Leverage Project Management Software.pdf
System and Network Administraation Chapter 3
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Odoo POS Development Services by CandidRoot Solutions
Transform Your Business with a Software ERP System
Design an Analysis of Algorithms I-SECS-1021-03
L1 - Introduction to python Backend.pptx
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Operating system designcfffgfgggggggvggggggggg
System and Network Administration Chapter 2
How to Choose the Right IT Partner for Your Business in Malaysia
ManageIQ - Sprint 268 Review - Slide Deck
Which alternative to Crystal Reports is best for small or large businesses.pdf
Introduction Database Management System for Course Database
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf

Web component

  • 2. What is Web component It is not a single technology rather is a suite of different technologies allowing us to create reusable custom elements — with their functionality encapsulated away from the rest of our code — and utilize them in your web apps. It does not need 3rd party library or framework, it is pure web technology that can be used with other existing framework like React, Vue, Angular even without any framework
  • 3. Why Web component - Encapsulate business logic and UI - Highly reusable across project even among multiple projects with different web frameworks - Pure web technology, so we can use with any project without any framework - Same component can be used in vue, react, Angular and other framework also
  • 4. Web Component Custom HTML Element: Register our own HTML tag Shadow DOM: Manage a separate DOM node tree HTML templates: The <template> and <slot> elements enable you to write markup templates HTML Import Discontinued due to modern dev tool provide good solution
  • 5. Types of Custom Element 1. Autonomous Element which does not depend on any other element 2. Extended Built-in elements
  • 9. Custom Element Vue.js React Class based component constructor Created for component, bind for custom directive constructor connectedCallback mounted componentDidMount attribureChangedCallback updated componentDidUpdate disconnectedCallback unmounted componentWillUnmount (similar but not exact) Custom element’s Callback methods compared to Vue.js & React
  • 10. Time for real coding
  • 11. ● DataFormsJS — Open source web components library — Set of Web Components that can be used to build Single Page Apps (SPA), Display JSON data from API’s and Web Services, and bind data to different elements on screen. All Web Components are plain JavaScript and require no build process. ● FAST is a web component library built by Microsoft which offers several packages to leverage depending on your project needs. Fast Element is a lightweight means to easily build performant, memory-efficient, standards-compliant Web Components. Fast Foundation is a library of Web Component classes, templates, and other utilities built on fast-element intended to be composed into registered Web Components. ● Hybrids — Open source web components library, which favors plain objects and pure functions over class and this syntax. It provides a simple and functional API for creating custom elements. ● Lit — Google's web components library, the core of which is a component base class designed to reduce boilerplate while providing reactive state, scoped styles, and a declarative template system. ● Snuggsi — Easy Web Components in ~1kB Including polyfill — All you need is a browser and basic understanding of HTML, CSS, and JavaScript classes to be productive. ● Slim.js — Open source web components library — a high-performant library for rapid and easy component authoring; extensible and pluggable and cross-framework compatible. ● Stencil — Toolchain for building reusable, scalable design systems in web components.
  • 12. References & Further reading - https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements - https://developers.google.com/web/fundamentals/web-components/customelements - https://html.spec.whatwg.org/multipage/custom-elements.html - https://www.html5rocks.com/en/tutorials/webcomponents/customelements/ - https://github.com/WICG/webcomponents - https://www.webcomponents.org/ - https://github.com/engr-hasanuzzaman/funwith-web- component/tree/master/custom_components