Web Components in Action

Web Components in Action Front Cover
0 Reviews
2019-09-17
432 pages

Book Description

Summary

Web Components are a standardized way to build reusable custom elements for web pages and applications using HTML, CSS, and . A Web Component is well-encapsulated, keeping its internal structure separate from other page elements so they don't collide with the rest of your code. In Web Components in Action you'll learn to design, build, and deploy reusable Web Components from scratch.

Foreword by Gray Norton.

Purchase of the print book includes a free eBook in PDF, , and ePub formats from Manning Publications.

About the Technology

The right can set your sites and web applications apart from the ordinary. Using the Web Components API, you can build Custom Elements and then add them to your pages with just a simple HTML tag. This standards-based design approach gives you complete control over the style and behavior of your components and makes them radically easier to build, share, and reuse between projects.

About the Book

Web Components in Action teaches you to build and use Web Components from the ground up. You'll start with simple components and component-based applications, using JavaScript, HTML, and CSS. Then, you'll customize them and apply best design practices to maximize reusability. Through hands-on projects, you'll learn to build production-ready Web Components for any project, including color pickers, advanced applications using 3D , mixed reality, and machine learning.

What's inside

  • Creating reusable Custom Elements without a
  • Using the Shadow DOM for ultimate component encapsulation
  • Leveraging newer JS features to organize and reuse code
  • Fallback strategies for using Web Components on older browsers

About the Reader

Written for web developers experienced with HTML, CSS, and JavaScript.

About the Author

Ben Farrell is a Senior Experience Developer at Adobe working on the Adobe Design Prototyping Team.

Table of Contents

PART 1 - FIRST STEPS

  1. The framework without a framework
  2. Your first Web Component
  3. Making your component reuseable
  4. The component lifecycle
  5. Instrumenting a better web app through

PART 2 - WAYS TO IMPROVE YOUR COMPONENT WORKFLOW

  1. Markup Managed
  2. Templating your content with HTML
  3. The Shadow DOM
  4. Shadow CSS
  5. Shadow CSS rough edges

PART 3 - PUTTING YOUR COMPONENTS TOGETHER

  1. A real-world UI component
  2. Building and supporting older browsers
  3. Component testing
  4. Events and application data flow
  5. Hiding your complexities

Book Details

  • Title: Web Components in Action
  • Author:
  • Length: 432 pages
  • Edition: 1
  • Language: English
  • Publisher:
  • Publication Date: 2019-09-17
  • ISBN-10: 1617295779
  • ISBN-13: 9781617295775