Learn to scale UI libraries for performant, enterprise-ready apps

The Fullstack Web Components book is the complete guide to building UI Libraries with Web Components

  • Learn Web Components through the lens of a JavaScript developer

    Web Components are a powerful tool for user interface development. They are interoperable and adding them to your stack can help you scale a UI library to multiple teams. Plus they can have a long lifespan because they are built with browser specifications. Web Components are performant because they don't have to rely on the overhead from JavaScript frameworks.

    There are several books about Web Components, but none go into how to integrate Web Components in an enterprise web development workflow. This book is designed to help you learn Web Components and integrate it into your actual work.

    Get hands-on experience coding UI with Web Components, but also learn how to test and maintain those components in the context of a distributed UI library in Fullstack Web Components.

    What's in the book

    Fullstack Web Components teaches you how to code complex user interfaces with custom elements

    1The basics of working with and manipulating Web Components
    2How to server-side render Web Components with Declarative Shadow DOM and Node.js
    3How to create a micro-library for Web Components with TypeScript Decorators
    4How to build web applications entirely from Web Components and JavaScript
    5The best practices for maintaining a UI library made of custom elements
    6What problems Web Components can solve in everyday development

    Our students work at

    • salesforce-seeklogo.com.svgintuit-seeklogo.com.svgAdobe.svgDisney.svgheroku-seeklogo.com.svgAT_and_T.svgmicrosoft-seeklogo.com.svgamazon-seeklogo.com.svg

    πŸ‘‹ Hi, I’m Steve, the author of this book.

    I’m a Principal Front-end Software Engineer at Swimlane. I started tinkering with web development back in the 90s…and never stopped.

    I specialize in user interface library and web application architecture. I have developed interactive user experiences for enterprise corporations (Lexus, Ubiquiti Networks, NBC Universal, Nike, and Symantec) and have taught computer science and engineering at General Assembly and Syracuse University.

    I am passionate about teaching the next generation of web engineers how to navigate the ever-expanding web platform. In this book, I’ll show you how to master Web Components in a way that can benefit you, other developers, students, or anyone making a website.

    Every chapter contains step-by-step instructions for coding each component and developing a web application with Web Components.

    We’ll start by coding UI components using the set of specifications that comprise Web Components, increasing in complexity while covering real world problems: forms, custom templates, editable tables, and dialogs along the way. In a lerna monorepo, we'll code almost exclusively with Storybook as our development environment and write tests for each component using Cypress. By the end of this book, you'll have developed a user interface library from a design system in Figma and used those components in the context of a web application.

                  
    

    Table of Contents

    • Introduction1
    • AcknowledgementsΒ 
    • ForewordΒ 
    • Introduction to Web ComponentsΒ 
    • Conventions Used In The BookΒ 
    • Setting Up The Development EnvironmentΒ 
    • Module 1 SummaryΒ 
    • Part One2
    • SpecificationΒ 
    • Getting to Know Web Components3
    • Autonomous custom elementsΒ 
    • Template SlotsΒ 
    • Styling CardComponentΒ 
    • Testing the cardΒ 
    • Chapter One SummaryΒ 
    • Form-associated custom elements4
    • Form-associated custom elementsΒ 
    • TextInputComponentΒ 
    • Form Associated and ElementInternalsΒ 
    • Handling ValidationΒ 
    • Listening for attribute changesΒ 
    • User feedbackΒ 
    • Emulating HTMLInputElementΒ 
    • Making a formΒ 
    • Chapter Two SummaryΒ 
    • Customized built-in elements5
    • Customized built-in elementsΒ 
    • Scaffolding ButtonComponentΒ 
    • Styling ButtonComponentΒ 
    • Making the form accessibleΒ 
    • Chapter Three SummaryΒ 
    • Part Two6
    • UI LibraryΒ 
    • Micro-library7
    • Micro-libraryΒ 
    • Class DecoratorΒ 
    • Method DecoratorΒ 
    • Chapter Four SummaryΒ 
    • Compound Custom Elements8
    • Component CommunicationΒ 
    • Mocking Table Data in StorybookΒ 
    • Coding Compound ComponentsΒ 
    • Making the Table EditableΒ 
    • SummaryΒ 
    • Powering Dialogs with HTML Templates9
    • HTML TemplatesΒ 
    • Mocking the Dialog in StorybookΒ 
    • DialogComponentΒ 
    • Modal and TooltipΒ 
    • Querying DOM Across Shadow BoundariesΒ 
    • DialogStackΒ 
    • Chapter Six SummaryΒ 
    • Distributing Custom Element Libraries10
    • UI LibrariesΒ 
    • DistributionΒ 
    • DocumentationΒ 
    • Continuous IntegrationΒ 
    • Chapter Seven SummaryΒ 
    • Part Three11
    • ApplicationΒ 
    • Application Development with Custom Elements12
    • Application Development with Custom ElementsΒ 
    • Landing PageΒ 
    • HeaderΒ 
    • CookieFooterΒ 
    • BackgroundΒ 
    • Chapter Eight SummaryΒ 
    • Routing Custom Elements in a SPA13
    • Routing Custom Elements in a SPAΒ 
    • RoutingΒ 
    • Login ViewΒ 
    • Dashboard ViewΒ 
    • Chapter Nine SummaryΒ 
    • Server-side Rendering with Declarative Shadow DOM14
    • Server-Side Rendering Custom ElementsΒ 
    • Declarative Shadow DOM TemplatesΒ 
    • ShimΒ 
    • Express MiddlewareΒ 
    • Chapter Ten SummaryΒ 
    • Fullstack Web Components15
    • ConclusionΒ 

    Purchase the book today

    Fullstack Web Components
    Learn to scale UI libraries for performant, enterprise-ready apps
    Instantly download the complete book and code examples
    $69 $79
    • PDF, EPub, and Mobi
    • Completed Code Files
    • Access to our community
    • Learn to create custom web components
    Fullstack Web Components
    Every book in the newline library with newline Pro
    Learn more about the benefits of newline Pro
    Get access to Fullstack Web Components and every other book in the newline collection
    $18/mo
    • Access to every book
    • Complete Code Files for each title
    • Access to our community
    Error: Can't find product newline-basic-subscription-monthly. Please contact [email protected]

    I'm wondering...

    Who is this book for?

    This book is great for any web developer who desires a hands-on experience learning how to integrate Web Components into their development processes as if you were developing a UI library at an enterprise corporation.

    Do I need to be a web developer to get something out of this book?

    While it is helpful to have a basic knowledge of HTML, CSS, and JavaScript, you will still get a lot out of this book without a relevant background in web development. The book has modules that use HTML, CSS, TypeScript and JavaScript frameworks. The book will cover an array of topics useful in developing a website using only browser specifications.

    Why Web Components?

    Web Components are a powerful tool for user interface development. Web Components are interoperable. Adding Web Components to your stack can help you scale a UI library to multiple teams. Web Components can have a long lifespan because they are built with browser specifications. Web Components are performant because they don't have to rely on the overhead from JavaScript frameworks.

    What if I need help?

    You can ask us questions anytime through the community Discord channel or by sending us a message.

    What happens after I buy the book?

    If you subscribe to newline Pro you'll be able to read Fullstack Web Components and a dozen other books online. If you buy through Gumroad, you'll also receive an email from Gumroad giving you instructions on how to download it.

    Is the book complete?

    Yes

    Are there free updates?

    Yes! Buying now entitles you to free updates for at least one year after purchase.

    How do I download the book and updates?

    If you've purchased the book through Gumroad, you can download it from your Gumroad library. You can also read the book online if you are part of our Pro plan.

    What if I don't like it?

    If you're unhappy with the book for any reason, just reach out to us and we'll give you a full refund. There's no risk.