Exploring Web Components: Build Reusable UI Web Components with Standard Technologies

· BPB Publications
Ebook
224
Pages

About this ebook

Learn how to create reusable components to build modern Web user interfaces with standard technologiesÊ

Ê

KEY FEATURESÊ

_ Learn how standard Web technologies allows you to build reusable UI components.

_ Learn how to protect the look and the internal behavior of your components.

_ Learn how to use Web Components in React, Angular, and Vue projects.

_ Learn how to use third-party libraries and tools to simplify the process of building your components.


DESCRIPTIONÊ

The design of Web user interfaces has been growing significantly in recent times thanks to libraries like React, Angular, Vue. They allow you to create awesome UI components, but have a great drawback: their components are not interoperable.


Web Components enable you to overcome this drawback by using a set of standard technologies.


The book drives you in the exploration of these technologies with a practical approach. It describes how to create Custom Elements; how to protect their internal behavior by leveraging the Shadow DOM; how to simplify the UI definition through HTML templates.


Also, you will discover how to distribute and use your Web Components and how to leverage libraries and tools to develop them.


Throughout the book, you will carry out a Web Component project that will provide you with practical experience in using those technologies.


WHAT WILL YOU LEARNÊ Ê

_ Use Custom Elements technology to define your HTML elements.

_ Use Shadow DOM to protect the inner behavior of your UI components.

_ Work with HTML templates to simplify and enhance the way you define the UI of your components.

_ Reuse your Web Components in applications built with Vanilla JavaScript, React, Angular, and Vue.


WHO THIS BOOK IS FORÊÊ

This book is for frontend Web developers who want to leverage standard technologies to build reusable UI components. Basic knowledge of JavaScript, HTML, and CSS is required.


TABLE OF CONTENTSÊ

1. Getting Started with Web Components

2. Extending HTML Elements

3. Creating Custom Web Components

4. Managing Properties and Attributes

5. Handling Events

6. Using the Shadow DOM

7. Using HTML Templates

8. Distributing and Extending Web Components

9. Web Components and Other UI Frameworks

10. Tools for Web Components Development

Rate this ebook

Tell us what you think.

Reading information

Smartphones and tablets
Install the Google Play Books app for Android and iPad/iPhone. It syncs automatically with your account and allows you to read online or offline wherever you are.
Laptops and computers
You can listen to audiobooks purchased on Google Play using your computer's web browser.
eReaders and other devices
To read on e-ink devices like Kobo eReaders, you'll need to download a file and transfer it to your device. Follow the detailed Help Center instructions to transfer the files to supported eReaders.