liveBook · Manning

What you will learn in Web Components in Action

by Benjamin Farrell

Chapter by chapter

Chapter 1: Chapter 1. The framework without a framework

1.1 What are Web Components? · 1.2 The future of Web Components · 1.3 Beyond the single component · 1.4 Your project, your choice · 1.5 Summary

What you learn in chapter 1 →

Chapter 2: 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 · 2.8 Summary

What you learn in chapter 2 →

Chapter 3: Chapter 3. Making your component reusable

3.1 A real-world component · 3.2 Making our component configurable · 3.3 Using attributes for configuration · 3.4 Listening for attribute changes · 3.5 Making more things even more customizable · 3.6 Updating the slider component · 3.7 Summary

What you learn in chapter 3 →

Chapter 4: Chapter 4. The component lifecycle

4.1 The Web Components API · 4.2 The connectedCallback handler · 4.3 The remaining Web Component lifecycle methods · 4.4 Comparing to React’s lifecycle · 4.5 Comparing to a game engine lifecycle · 4.6 Component lifecycle v0 · 4.7 Summary

What you learn in chapter 4 →

Chapter 5: Chapter 5. Instrumenting a better web app through modules

5.1 Using the <script> tag to load your Web Components · 5.2 Using modules to solve dependency problems · 5.3 Adding interactivity to our component · 5.4 Wrapping third-party libraries as modules · 5.5 Summary

What you learn in chapter 5 →

Chapter 6: Chapter 6. Markup managed

6.1 String theory · 6.2 Using template literals · 6.3 Importing templates · 6.4 Template logic · 6.5 Element caching · 6.6 Smart templating · 6.7 Updating the slider component · 6.8 Summary

What you learn in chapter 6 →

Chapter 7: Chapter 7. Templating your content with HTML

7.1 R.I.P. HTML Imports · 7.2 The <template> tag · 7.3 Choose your own template adventure · 7.4 Dynamically loading templates · 7.5 Entering the Shadow DOM with slots · 7.6 Summary

What you learn in chapter 7 →

Chapter 8: Chapter 8. The Shadow DOM

8.1 Encapsulation · 8.2 Enter the Shadow DOM · 8.3 The Shadow DOM today · 8.4 Summary

What you learn in chapter 8 →

Chapter 9: Chapter 9. Shadow CSS

9.1 Style creep · 9.2 Style creep solved with the Shadow DOM · 9.3 Shadow DOM workout plan · 9.4 Adaptable components · 9.5 Updating the slider component · 9.6 Summary

What you learn in chapter 9 →

Chapter 10: Chapter 10. Shadow CSS rough edges

10.1 Contextual CSS · 10.2 Component themes · 10.3 Using the Shadow DOM in practice (today) · 10.4 Summary

What you learn in chapter 10 →

Chapter 11: Chapter 11. A real-world UI component

11.1 Crafting a color picker · 11.2 Coordinate picker component · 11.3 The color picker · 11.4 Adding a common design language · 11.5 Summary

What you learn in chapter 11 →

Chapter 12: Chapter 12. Building and supporting older browsers

12.1 Backward compatibility · 12.2 Building for the least common denominator · 12.3 Build processes · 12.4 Building components · 12.5 Transpiling for IE · 12.6 Summary

What you learn in chapter 12 →

Chapter 13: Chapter 13. Component testing

13.1 Unit testing and TDD · 13.2 Web Component tester · 13.3 Comparing to a standard test setup with Karma · 13.4 Summary

What you learn in chapter 13 →

Chapter 14: Chapter 14. Events and application data flow

14.1 Framework offerings · 14.2 Events · 14.3 Passing events through Web Components · 14.4 Separate your data · 14.5 Exercise playback view · 14.6 Passing events with an event bus · 14.7 Summary

What you learn in chapter 14 →

Chapter 15: Chapter 15. Hiding your complexities

15.1 Looking to the Web Component future · 15.2 3D and mixed reality · 15.3 Video effects · 15.4 Hand tracking and machine learning · 15.5 Summary

What you learn in chapter 15 →

Concepts explained in this book

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.