Book description
Web Components are a standardized way to build reusable custom elements for web pages and applications using HTML, CSS, and JavaScript. 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.
About the Technology
The right UI 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 models, mixed reality, and machine learning.
What's Inside
- Creating reusable Custom Elements without a framework
- 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.
Quotes
Teaches by example, demonstrating concepts through compelling projects that illuminate realistic use cases.
- From the Foreword by Gray Norton, Polymer Project, Google
Informative, full of resources and comprehensive examples. Definitely one of the best books I’ve read about web technology this year.
- Russel Dawn Cajoles, BlaqClouds
A solid resource for frontend developers experiencing JavaScript framework fatigue.
- Matt Welke, GroupBy
Well-paced and thorough. Highly recommended.
- Justin Calleja, Mr Green
Table of contents
- Copyright
- Brief Table of Contents
- Table of Contents
- Foreword
- Preface
- Acknowledgments
- About this book
- About the cover illustration
-
Part 1. First steps
- Chapter 1. The framework without a framework
-
Chapter 2. Your first Web Component
- 2.1. Intro to HTMLElement
- 2.2. Rules for naming your element
- 2.3. Defining your custom element (and handling collisions)
- 2.4. Extending HTMLElement to create custom component logic
- 2.5. Using your custom element in practice
- 2.6. Making a (useful) first component
- 2.7. Notes on browser support
- Summary
- Chapter 3. Making your component reusable
- Chapter 4. The component lifecycle
- Chapter 5. Instrumenting a better web app through modules
- Part 2. Ways to improve your component workflow
- Part 3. Putting your components together
- Appendix. ES2015 for Web Components
- Index
- List of Figures
- List of Tables
- List of Listings
Product information
- Title: Web Components in Action
- Author(s):
- Release date: September 2019
- Publisher(s): Manning Publications
- ISBN: 9781617295775
You might also like
video
Learn Practical Web Components Quickly
As a developer, haven't you often suffered from writing too much code? More often than not, …
book
Full-Stack Web Development with GraphQL and React - Second Edition
Unleash the power of GraphQL, React 17, Node, and Express to build a scalable and production-ready …
book
Web Development with Node and Express, 2nd Edition
Build dynamic web applications with Express, a key component of the Node/JavaScript development stack. In this …
book
CSS in Depth
CSS in Depth exposes you to a world of CSS techniques that range from clever to …