Tobias Münch

Frameworkless: How to use Web-Components in production?

What if you could escape framework migrations forever? Learn how Web Components offer a standards-based solution for long-term stability and speed.

Frameworkless: How to use Web-Components in production?
#1about 3 minutes

Why you should consider frameworkless web components

Web components offer a solution to dependency chain risks, performance overhead, and maintainability issues by relying on native browser standards instead of external frameworks.

#2about 5 minutes

Understanding the core standards of web components

The foundation of web components consists of key standards like the Shadow DOM for encapsulation, Custom Elements for defining new HTML tags, and HTML Templates with Slots for reusable markup.

#3about 3 minutes

Managing the web component lifecycle and attributes

Web components follow a defined lifecycle with callbacks like connectedCallback and disconnectedCallback, while attributeChangedCallback responds to changes in observed attributes.

#4about 3 minutes

Choosing rendering strategies and passing data

Components can be rendered by directly manipulating the DOM, re-rendering entirely, or using a virtual DOM approach, and complex data can be passed as object properties.

#5about 4 minutes

Structuring a production project with web components

A production application was structured using a domain-driven design approach, leading to the creation of a custom base component library to improve development pace.

#6about 1 minute

Using web components to migrate legacy applications

Web components can be used to incrementally modernize legacy applications by replacing old components one by one without a full rewrite.

#7about 1 minute

Weighing the advantages and disadvantages of web components

While web components offer high performance and no dependencies, they come with a steeper learning curve, slower initial development pace, and the responsibility of maintaining your own code library.

#8about 17 minutes

Live coding an editable list with web components

A practical demonstration shows how to build an interactive list component from scratch, covering rendering, state management, event handling, and component interaction.

#9about 2 minutes

Conclusion and when to use lightweight frameworks

While pure web components offer long-term stability, lightweight frameworks like Stencil.js or Slim.js can provide a practical compromise for faster development and added comfort.

#10about 8 minutes

Answering audience questions about web components

The Q&A session addresses topics like Internet Explorer compatibility, the role of frameworks like Stencil, bundle size concerns, and the strategic trade-offs of going frameworkless.

Related jobs
Jobs that call for the skills explored in this talk.

Featured Partners

Related Articles

View all articles
BR
Benjamin Ruschin
The HTML Elements That You’re Probably Over-Engineering
As frameworks have become more and more commonplace in the world of web development, so too has the over-engineering of features made possible by our humble old friend, HTML. The mental models that come with using state management in React, Vue and o...
The HTML Elements That You’re Probably Over-Engineering
CH
Chris Heilmann
Building a "shoutout" component in plain HTML/CSS/JavaScript
Every Wednesday we meet at noon to talk about a lot of tech news, tools and resources in something we call WeAreDevelopers Live . We go live on YouTube and afterwards we cut out short videos to post on social media. What we needed was an obvious “sho...
Building a "shoutout" component in plain HTML/CSS/JavaScript
CH
Chris Heilmann
Links and anchors: ancient HTML and JS magic in your browser
Have you ever wondered why you use an <a> element to add link to an HTML document? Paragraph is <p>, unordered list is <ul>, image is <img> but why <a> instead of <link>? Well, the reason is that the element both defines where to go to, but also an e...
Links and anchors: ancient HTML and JS magic in your browser

From learning to earning

Jobs that call for the skills explored in this talk.

Lead Full-Stack Engineer

Lead Full-Stack Engineer

Hubert Burda Media
München, Germany

80-95K
Intermediate
Senior
React
Vue.js
Node.js
MongoDB
+1