Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
JavaScript by Example

You're reading from   JavaScript by Example Learn modern web development with real-world applications

Arrow left icon
Product type Paperback
Published in Aug 2017
Publisher Packt
ISBN-13 9781788293969
Length 298 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Dani Akash S Dani Akash S
Author Profile Icon Dani Akash S
Dani Akash S
Arrow right icon
View More author details
Toc

Introduction to web components

Web components are a set of four different technologies that can be used together or separately to build reusable user interface widgets. Just as we can create reusable modules using JavaScript, we can create reusable DOM elements with web component technologies. The four technologies that form the web components are:

  • Custom elements
  • HTML templates
  • Shadow DOM
  • HTML imports

The web components were created to provide developers simple APIs to build highly reusable DOM elements. There are many JavaScript libraries and frameworks that focus on providing reusability by organizing the entire web application into simpler components, such as React, Angular, Vue, Polymer, and so on. In the next chapter, we are going to build an entire web application by putting together multiple independent React components. However, despite all the frameworks and libraries...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime