[{"data":1,"prerenderedAt":225},["ShallowReactive",2],{"articles":3,"article-en-will-web-components-replace-frontend-frameworks":219},[4,21,33,46,60,72,81,90,100,111,121,130,141,151,166,177,187,200,209],{"slug":5,"locale":6,"title":7,"description":8,"publishedAt":9,"updatedAt":10,"tags":11,"cover":16,"minutes":17,"featured":10,"mostRead":18,"originalUrl":19,"originalLinked":18,"locales":20},"my-simple-strategy-for-3-268-5-star-chrome-extension-reviews","en","My Simple Strategy for 3,268 5‑Star Chrome Extension Reviews","Around 3.7% of my users leave a review. It comes down to asking at the right moment.","2025-07-28",null,[12,13,14,15],"Marketing","Side Projects","Side Hustle","Chrome Extension","\u002Fblog\u002Fmedia\u002Fmy-simple-strategy-for-3-268-5-star-chrome-extension-reviews\u002Fcover.webp",6,false,"https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Fmy-simple-strategy-for-3-268-5-star-chrome-extension-reviews\u002F",[6],{"slug":22,"locale":6,"title":23,"description":24,"publishedAt":25,"updatedAt":10,"tags":26,"cover":29,"minutes":17,"featured":30,"mostRead":18,"originalUrl":31,"originalLinked":18,"locales":32},"lessons-from-a-bamboo-tree-staying-motivated-on-my-side-project","Five Years to 100K Users: The Bamboo Tree Story for Side Project Growth","For years almost nothing seemed to happen. Why I kept watering anyway.","2024-09-22",[27,28,13,14],"My Journey","Story","\u002Fblog\u002Fmedia\u002Flessons-from-a-bamboo-tree-staying-motivated-on-my-side-project\u002Fcover.webp",1,"https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Flessons-from-a-bamboo-tree-staying-motivated-on-my-side-project\u002F",[6],{"slug":34,"locale":6,"title":35,"description":36,"publishedAt":37,"updatedAt":10,"tags":38,"cover":41,"minutes":42,"featured":42,"mostRead":43,"originalUrl":44,"originalLinked":18,"locales":45},"3-practical-growth-hacks-i-applied-to-scale-my-chrome-extension-to-100k-users-without-any-marketing-budget","How I Grew My Chrome Extension to 100K Users Without Marketing Costs","Learning SEO, asking for reviews, and building ONE great product.","2024-06-18",[39,40,14,12,27],"Web Development","SEO","\u002Fblog\u002Fmedia\u002F3-practical-growth-hacks-i-applied-to-scale-my-chrome-extension-to-100k-users-without-any-marketing-budget\u002Fcover.webp",4,true,"https:\u002F\u002Fweb-highlights.com\u002Fblog\u002F3-practical-growth-hacks-i-applied-to-scale-my-chrome-extension-to-100k-users-without-any-marketing-budget\u002F",[6],{"slug":47,"locale":6,"title":48,"description":49,"publishedAt":50,"updatedAt":10,"tags":51,"cover":57,"minutes":42,"featured":10,"mostRead":18,"originalUrl":58,"originalLinked":18,"locales":59},"the-art-of-slow-growth-how-i-calmly-grew-my-chrome-extension-to-100k-users-in-5-years","The Art of Slow Growth: How I Calmly Grew My Chrome Extension to 100K Users In 5 Years","It took me over a year to get my first ten users. Why I stopped rushing.","2024-06-04",[52,53,39,54,55,56],"Entrepreneurship","marketing","#growth","startup","Startups","\u002Fblog\u002Fmedia\u002Fthe-art-of-slow-growth-how-i-calmly-grew-my-chrome-extension-to-100k-users-in-5-years\u002Fcover.webp","https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Fhow-i-calmly-grew-my-chrome-extension-to-100k-users-in-5-years\u002F",[6],{"slug":61,"locale":6,"title":62,"description":63,"publishedAt":64,"updatedAt":10,"tags":65,"cover":67,"minutes":68,"featured":69,"mostRead":18,"originalUrl":70,"originalLinked":18,"locales":71},"3-unusually-painful-mistakes-on-my-side-project-journey-to-100k-users","3 Unusually Painful Mistakes on My Side Project Journey to 100K Users","Never questioning growth, building an audience too late, and not writing things down.","2024-05-03",[66,52,56],"solopreneur","\u002Fblog\u002Fmedia\u002F3-unusually-painful-mistakes-on-my-side-project-journey-to-100k-users\u002Fcover.webp",5,3,"https:\u002F\u002Fweb-highlights.com\u002Fblog\u002F3-unusually-painful-mistakes-on-my-side-project-journey\u002F",[6],{"slug":73,"locale":6,"title":74,"description":75,"publishedAt":76,"updatedAt":10,"tags":77,"cover":78,"minutes":17,"featured":10,"mostRead":18,"originalUrl":79,"originalLinked":18,"locales":80},"forget-about-marketing-focus-on-building-an-awesome-product","Forget About Marketing. Focus on Building An Awesome Product","Everyone says great products need a megaphone. Why I still put the product first.","2024-03-04",[52,56,53],"\u002Fblog\u002Fmedia\u002Fforget-about-marketing-focus-on-building-an-awesome-product\u002Fcover.webp","https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Fforget-about-marketing-focus-on-building-an-awesome-product\u002F",[6],{"slug":82,"locale":6,"title":83,"description":84,"publishedAt":85,"updatedAt":10,"tags":86,"cover":87,"minutes":17,"featured":10,"mostRead":18,"originalUrl":88,"originalLinked":18,"locales":89},"5-reasons-why-side-projects-never-get-finished","5 Reasons Why Side-Projects Never Get Finished","Shiny objects, boredom, a lack of courage — and how to get back on track.","2023-08-01",[13],"\u002Fblog\u002Fmedia\u002F5-reasons-why-side-projects-never-get-finished\u002Fcover.webp","https:\u002F\u002Fweb-highlights.com\u002Fblog\u002F5-reasons-why-side-projects-never-get-finished\u002F",[6],{"slug":91,"locale":6,"title":92,"description":93,"publishedAt":94,"updatedAt":10,"tags":95,"cover":97,"minutes":17,"featured":10,"mostRead":18,"originalUrl":98,"originalLinked":18,"locales":99},"time-vs-dreams-why-i-decided-to-sell-my-b2b-saas-ai-business","Time Vs. Dreams: Why I Decided to Sell My B2B SaaS AI Business","ChatGPT fever, competitors with thousands of users within weeks, and too little time. Why I sold my AI business.","2023-07-12",[96,66,56,52],"side project","\u002Fblog\u002Fmedia\u002Ftime-vs-dreams-why-i-decided-to-sell-my-b2b-saas-ai-business\u002Fcover.webp","https:\u002F\u002Fblog.marius-bongarts.de\u002Ftime-vs-dreams-why-i-decided-to-sell-my-b2b-saas-ai-business",[6],{"slug":101,"locale":6,"title":102,"description":103,"publishedAt":104,"updatedAt":10,"tags":105,"cover":107,"minutes":108,"featured":10,"mostRead":18,"originalUrl":109,"originalLinked":18,"locales":110},"the-tech-stack-behind-web-highlights-a-chrome-extension-with-over-10-000-weekly-users","Web Highlights Tech Stack: Chrome Extension With 100k+ Users","Web Components, Vue.js and the rest of the stack behind the extension.","2023-02-27",[39,106,27],"Web Highlights","\u002Fblog\u002Fmedia\u002Fthe-tech-stack-behind-web-highlights-a-chrome-extension-with-over-10-000-weekly-users\u002Fcover.webp",9,"https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Fthe-tech-stack-behind-web-highlights-a-chrome-extension-with-over-10-000-weekly-users\u002F",[6],{"slug":112,"locale":6,"title":113,"description":114,"publishedAt":115,"updatedAt":10,"tags":116,"cover":118,"minutes":42,"featured":10,"mostRead":18,"originalUrl":119,"originalLinked":18,"locales":120},"failing-forward-the-importance-of-publishing-your-side-projects","Failing Forward: The Importance of Publishing Your Side Projects","Publish your side projects, even if they fail — and why failing forward makes you more creative.","2023-02-20",[14,13,39,117,27],"Programming","\u002Fblog\u002Fmedia\u002Ffailing-forward-the-importance-of-publishing-your-side-projects\u002Fcover.webp","https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Ffailing-forward-the-importance-of-publishing-your-side-projects\u002F",[6],{"slug":122,"locale":6,"title":123,"description":124,"publishedAt":125,"updatedAt":10,"tags":126,"cover":127,"minutes":68,"featured":10,"mostRead":18,"originalUrl":128,"originalLinked":18,"locales":129},"rocketing-to-10-000-users-how-i-achieved-a-270-increase-in-just-9-months-with-my-chrome-extension","How I Increased Chrome Extension Users by 270% in 9 Months","Simple SEO, done consistently: the nine months that took the extension to 10,000 users.","2023-02-06",[12,40,14,106],"\u002Fblog\u002Fmedia\u002Frocketing-to-10-000-users-how-i-achieved-a-270-increase-in-just-9-months-with-my-chrome-extension\u002Fcover.webp","https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Frocketing-to-10-000-users-how-i-achieved-a-270-increase-in-just-9-months-with-my-chrome-extension\u002F",[6],{"slug":131,"locale":6,"title":132,"description":133,"publishedAt":134,"updatedAt":10,"tags":135,"cover":137,"minutes":138,"featured":10,"mostRead":18,"originalUrl":139,"originalLinked":18,"locales":140},"seo-strategies-i-used-to-gain-2-000-users-in-two-months","SEO Strategies I Used to Gain 2,000 Users In Two Months","A blog, backlinks and a cleaner site structure: how my user base grew 37% in two months.","2022-10-17",[40,12,39,136,27,28],"Software","\u002Fblog\u002Fmedia\u002Fseo-strategies-i-used-to-gain-2-000-users-in-two-months\u002Fcover.webp",8,"https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Fseo-strategies-i-used-to-gain-2-000-users-in-two-months\u002F",[6],{"slug":142,"locale":6,"title":143,"description":144,"publishedAt":145,"updatedAt":10,"tags":146,"cover":147,"minutes":148,"featured":10,"mostRead":18,"originalUrl":149,"originalLinked":18,"locales":150},"my-journey-to-5000-users-with-a-web-pdf-highlighter-chrome-extension","How I Achieved 5000+ Users with My Chrome Extension","Just do it, do things that don’t scale, and talk about your product.","2022-10-10",[15,13,27,28],"\u002Fblog\u002Fmedia\u002Fmy-journey-to-5000-users-with-a-web-pdf-highlighter-chrome-extension\u002Fcover.webp",7,"https:\u002F\u002Fweb-highlights.com\u002Fblog\u002Fmy-journey-to-5000-users-with-a-web-pdf-highlighter-chrome-extension\u002F",[6],{"slug":152,"locale":6,"title":153,"description":154,"publishedAt":155,"updatedAt":10,"tags":156,"cover":163,"minutes":164,"featured":10,"mostRead":18,"originalUrl":10,"originalLinked":18,"locales":165},"are-web-components-dead","Are Web Components Dead?","Some say they died years ago, others call them the future. Where they show up today and what holds developers back.","2022-06-20",[157,39,158,159,160,161,162],"Web Components","software development","web developers","Programming Blogs","Programming Tips","Frontend Development","\u002Fblog\u002Fmedia\u002Fare-web-components-dead\u002Fcover.webp",10,[6],{"slug":167,"locale":6,"title":168,"description":169,"publishedAt":170,"updatedAt":10,"tags":171,"cover":174,"minutes":69,"featured":10,"mostRead":18,"originalUrl":175,"originalLinked":43,"locales":176},"how-to-compete-with-google-apple-microsoft-and-co","How to Compete with Google, Apple, Microsoft, and Co.","The giants set the standard for software. A solo developer can still win — by doing things that don’t scale.","2022-06-13",[66,172,52,173,39],"buildinpublic","SaaS","\u002Fblog\u002Fmedia\u002Fhow-to-compete-with-google-apple-microsoft-and-co\u002Fcover.webp","https:\u002F\u002Fmedium.com\u002Fdev-genius\u002Fhow-to-compete-with-google-apple-microsoft-and-co-315da7aa5376",[6],{"slug":178,"locale":6,"title":179,"description":180,"publishedAt":181,"updatedAt":10,"tags":182,"cover":184,"minutes":42,"featured":10,"mostRead":18,"originalUrl":185,"originalLinked":43,"locales":186},"rule-of-three-three-strikes-and-you-refactor","Rule of Three — Three Strikes And You Refactor","DRY is about knowledge, not code. Why I wait for the third copy before I abstract.","2022-05-02",[39,160,158,183],"Software Engineering","\u002Fblog\u002Fmedia\u002Frule-of-three-three-strikes-and-you-refactor\u002Fcover.webp","https:\u002F\u002Fjavascript.plainenglish.io\u002Frule-of-three-three-strikes-and-you-refactor-942d13e7d5cd",[6],{"slug":188,"locale":6,"title":189,"description":190,"publishedAt":191,"updatedAt":10,"tags":192,"cover":196,"minutes":148,"featured":197,"mostRead":18,"originalUrl":198,"originalLinked":43,"locales":199},"my-journey-to-the-first-999-with-my-side-project","My Journey to the First $ 9.99 with My Side Project","Four users after one month: me, my brother, my mum and a friend. How it all started.","2022-04-04",[160,96,39,193,194,195],"chrome extension","Build In Public","passive income","\u002Fblog\u002Fmedia\u002Fmy-journey-to-the-first-999-with-my-side-project\u002Fcover.webp",2,"https:\u002F\u002Fmedium.com\u002F@mariusbongarts\u002Fmy-journey-to-the-first-9-99-with-my-side-project-3edc13dd1f2d",[6],{"slug":201,"locale":6,"title":202,"description":203,"publishedAt":204,"updatedAt":10,"tags":205,"cover":206,"minutes":148,"featured":10,"mostRead":18,"originalUrl":207,"originalLinked":43,"locales":208},"will-web-components-replace-frontend-frameworks","Will Web Components Replace Frontend Frameworks?","Probably not — and that’s fine. They solve different problems and work well together.","2021-10-11",[39,158,183,162,157],"\u002Fblog\u002Fmedia\u002Fwill-web-components-replace-frontend-frameworks\u002Fcover.webp","https:\u002F\u002Fmedium.com\u002F@mariusbongarts\u002Fwill-web-components-replace-frontend-frameworks-535891d779ba",[6],{"slug":210,"locale":6,"title":211,"description":212,"publishedAt":213,"updatedAt":10,"tags":214,"cover":216,"minutes":148,"featured":10,"mostRead":18,"originalUrl":217,"originalLinked":43,"locales":218},"when-you-should-duplicate-code","When You SHOULD Duplicate Code","Duplicated code isn’t always duplicated knowledge. When copying is the cleaner choice.","2021-01-06",[160,39,158,215],"design patterns","\u002Fblog\u002Fmedia\u002Fwhen-you-should-duplicate-code\u002Fcover.webp","https:\u002F\u002Fmedium.com\u002F@mariusbongarts\u002Fwhen-you-should-duplicate-code-b0d747bc1c67",[6],{"slug":201,"locale":6,"title":202,"description":203,"publishedAt":204,"updatedAt":10,"tags":220,"cover":206,"minutes":148,"featured":10,"mostRead":18,"originalUrl":207,"originalLinked":43,"locales":221,"html":222,"highlights":223,"headings":224},[39,158,183,162,157],[6],"\u003Cblockquote>\n\u003Cp>“Any headline that ends in a question mark can be answered by the word no.” — Ian Betteridge\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FBetteridge%27s_law_of_headlines\" target=\"_blank\" rel=\"noopener\">Betteridge's law of headlines\u003C\u002Fa> describes most likely your response to the offensive headline of this article. I never understood the ongoing war between Web Components and JavaScript frameworks like Angular, React, VueJs, etc. Yet, combining the two could make the world of frontend development so much easier and more efficient.\u003C\u002Fp>\n\u003Cp>\u003Cem>\u003Cstrong>Disclaimer:\u003C\u002Fstrong>\u003C\u002Fem> \u003Cem>I know React is a library and not a framework, but for the purposes of this post I will refer to it as a framework.\u003C\u002Fem>\u003C\u002Fp>\n\u003Chr>\n\u003Cp>It seems that many developers feel threatened by the thought of Web Components wiping out frontend frameworks. That won't happen because they are built to solve different problems.\u003C\u002Fp>\n\u003Cblockquote>\n\u003Cp>“Most people who use React don’t use Web Components, but you may want to […].” — \u003Ca href=\"https:\u002F\u002Freactjs.org\u002Fdocs\u002Fweb-components.html\" target=\"_blank\" rel=\"noopener\">https:\u002F\u002Freactjs.org\u003C\u002Fa>\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Cp>It is a shame that Web Components are still going so unnoticed these days. In this article, I will tell you when you should use them and why they will play a \u003Cstrong>significant role\u003C\u002Fstrong> in the future of frontend web development.\u003C\u002Fp>\n\u003Ch3 id=\"what-are-web-components\">What are Web Components?\u003C\u002Fh3>\n\u003Cp>Web Components are reusable client-side components based on official web standards and supported by all major browsers. They are an excellent way of \u003Cstrong>encapsulating\u003C\u002Fstrong> functionality from the rest of our code. Not only that, but you can \u003Cstrong>reuse\u003C\u002Fstrong> them in every web application and web page.\u003C\u002Fp>\n\u003Cp>Web Components enable us to develop entirely independently of frontend frameworks.\u003C\u002Fp>\n\u003Cblockquote>\n\u003Cp>The primary benefit of Web Components is that we can use them everywhere. With any framework, or even without a framework. — \u003Ca href=\"https:\u002F\u002Fv3.vuejs.org\u002Fguide\u002Fweb-components.html\" target=\"_blank\" rel=\"noopener\">vuejs.org\u003C\u002Fa>\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Ch4>How do they work?\u003C\u002Fh4>\n\u003Cp>Here's an example of how an \u003Cstrong>autonomous web component\u003C\u002Fstrong> can be defined:\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-javascript\">class MyWebComponent extends HTMLElement {...}\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cpre>\u003Ccode class=\"language-javascript\">window.customElements.define('my-web-component', MyWebComponent);\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>You can pass your element to any HTML page like this:\u003C\u002Fp>\n\u003Cp>\u003Ccode>&lt;my-web-component value=&quot;something&quot;&gt;&lt;\u002Fmy-web-component&gt;\u003C\u002Fcode>\u003C\u002Fp>\n\u003Cp>For more details on web components, check out this series of articles:\u003C\u002Fp>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fjavascript.plainenglish.io\u002Fshowcase-your-medium-articles-with-web-components-part-1-basics-d2c6618e9482\" target=\"_blank\" rel=\"noopener\">javascript.plainenglish.io\u002Fshowcase-your-medium-articles-with-web-components-part-1-basics-d2c6618e9482\u003C\u002Fa>\u003C\u002Fp>\n\u003Ch3 id=\"when-should-you-use-web-components\">When should you use Web Components?\u003C\u002Fh3>\n\u003Cp>Imagine a company that has developed a highly complex web application using React. Several hundred developers are working on it full-time. They created their own internal React component library to have a robust set of ready-made UI components such as buttons, inputs, dialogs, and so on. That helps to \u003Ca href=\"https:\u002F\u002Fjavascript.plainenglish.io\u002Fdry-your-wet-typescript-code-e3c777b3daf9\" target=\"_blank\" rel=\"noopener\">minimize code duplication\u003C\u002Fa> within the system, which is great!\u003C\u002Fp>\n\u003Cp>As we all know, the software industry is one of the fastest-growing and changing industries. This is accompanied by many changes and innovations in Software Engineering. Assuming, next year, someone will release the ultimate frontend framework, which will overshadow any existing one.\u003C\u002Fp>\n\u003Cp>More and more developers are adopting the new framework. Over the years, companies will use the framework for new projects, and some will migrate existing ones. React wouldn't be efficient anymore, and finding good React developers is getting more complicated and expensive.\u003C\u002Fp>\n\u003Cblockquote>\n\u003Cp>\u003Cstrong>Vendor lock-in\u003C\u002Fstrong> refers to a situation where the cost of switching to a different vendor is so high that one is essentially stuck with the original vendor.\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Cp>The company in our example would be \u003Cstrong>&quot;locked-in&quot;\u003C\u002Fstrong> to the inferior frontend library React. Switching to the new framework would be very expensive and may interrupt business operations. Every single frontend component of the application would have to be migrated to the new framework.\u003C\u002Fp>\n\u003Cblockquote>\n\u003Cp>“Vendor lock-in is when someone is essentially forced to continue using a product or service regardless of quality” — \u003Ca href=\"https:\u002F\u002Fwww.cloudflare.com\u002Flearning\u002Fcloud\u002Fwhat-is-vendor-lock-in\" target=\"_blank\" rel=\"noopener\">cloudflare.com\u003C\u002Fa>\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Chr>\n\u003Cp>\u003Cstrong>What could the company have done to reduce the costs of vendor-lock-in initially?\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>The use of \u003Cstrong>standards\u003C\u002Fstrong> makes systems more tolerant to change. As you probably have suspected: The company could have created \u003Cstrong>Web Components\u003C\u002Fstrong> for their UI components. Even React itself is suggesting the use of Web Components in their official documentation:\u003C\u002Fp>\n\u003Cblockquote>\n\u003Cp>Most people who use React don’t use Web Components, but you may want to, especially if you are using third-party \u003Cstrong>UI components that are written using Web Components\u003C\u002Fstrong>. — \u003Ca href=\"https:\u002F\u002Freactjs.org\u002Fdocs\u002Fweb-components.html\" target=\"_blank\" rel=\"noopener\">https:\u002F\u002Freactjs.org\u003C\u002Fa>\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Cp>While Web Components provide strong encapsulation for reusable elements that must be shared across multiple projects, React provides a declarative library that keeps the DOM in sync with your data. The two goals are complementary.\u003C\u002Fp>\n\u003Cblockquote>\n\u003Cp>“As a developer, you are free to use React in your Web Components, or to use Web Components in React, or both.” — \u003Ca href=\"https:\u002F\u002Freactjs.org\u002Fdocs\u002Fweb-components.html\" target=\"_blank\" rel=\"noopener\">reactjs.org\u003C\u002Fa>\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Cp>\u003Cstrong>You just don't need React to create a reusable button!\u003C\u002Fstrong> Meaning, whenever you plan to have multiple projects with different technology stacks in which you need to share components, go ahead and build Web Components.\u003C\u002Fp>\n\u003Ch3 id=\"why-should-you-learn-web-components\">Why should you learn Web Components?\u003C\u002Fh3>\n\u003Cp>Escaping vendor-lock-in is one of many reasons why you should learn and use Web Components. Here are a few more reasons why you should definitely have a look at Web Components:\u003C\u002Fp>\n\u003Ch4>Web Components are widely used.\u003C\u002Fh4>\n\u003Cp>The chart below shows the percentage of page loads (in Chrome) that calls \u003Ccode>customElements.define\u003C\u002Fcode> at least once.\u003C\u002Fp>\n\u003Cp>\u003Cimg src=\"\u002Fblog\u002Fmedia\u002Fwill-web-components-replace-frontend-frameworks\u002F01.webp\" alt=\"Percentage of page loads (in Chrome) that use CustomElementRegistryDefine (Source: chromestatus.com)\" loading=\"lazy\" decoding=\"async\">\u003C\u002Fp>\n\u003Cp>You can see that more than \u003Cstrong>15 %\u003C\u002Fstrong> of all websites, viewed in a Chrome browser, register at least one \u003Ca href=\"https:\u002F\u002Fmedium.com\u002F@mariusbongarts11\u002Fthe-complete-web-component-guide-part-1-custom-elements-a627af805df8\" target=\"_blank\" rel=\"noopener\">\u003Cstrong>Custom Element\u003C\u002Fstrong>\u003C\u002Fa>. Compared to that and according to \u003Ca href=\"https:\u002F\u002Fw3techs.com\u002Ftechnologies\u002Fcomparison\u002Fjs-angularjs,js-react\" target=\"_blank\" rel=\"noopener\">w3techs.com\u003C\u002Fa> only \u003Cstrong>2.3 %\u003C\u002Fstrong> of all websites use React.\u003C\u002Fp>\n\u003Ch4>Frontend frameworks support Web Components.\u003C\u002Fh4>\n\u003Cp>Earlier in the article, we already figured out that React supports creating encapsulated and reusable Web Components. Not only React but also Angular and VueJS are supporting this idea.\u003C\u002Fp>\n\u003Cp>Let's have a look at Angular. Angular provides the \u003Ccode>@angular\u002Felements\u003C\u002Fcode> package which enables developers to transform a component into a Web Component quickly.\u003C\u002Fp>\n\u003Cblockquote>\n\u003Cp>\u003Cem>“Angular elements\u003C\u002Fem> are Angular components packaged as \u003Cem>custom elements […]\u003C\u002Fem> “— \u003Ca href=\"https:\u002F\u002Fangular.io\u002Fguide\u002Felements\" target=\"_blank\" rel=\"noopener\">angular.io\u003C\u002Fa>\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Cp>And also, VueJS is supporting Web Components via the \u003Ccode>defineCustomElement\u003C\u002Fcode> method.\u003C\u002Fp>\n\u003Cblockquote>\n\u003Cp>“Vue supports creating custom elements using exactly the same Vue component APIs […] ” — \u003Ca href=\"https:\u002F\u002Fv3.vuejs.org\u002Fguide\u002Fweb-components.html#passing-dom-properties\" target=\"_blank\" rel=\"noopener\">vuejs.org\u003C\u002Fa>\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Ch4>You understand what is going on under the hook.\u003C\u002Fh4>\n\u003Cp>As we already know, many modern frontend frameworks support the idea of Web Components. Some of them, especially VueJS, are building on the foundation of web standards.\u003C\u002Fp>\n\u003Cp>Knowing the three main technologies (\u003Ca href=\"https:\u002F\u002Fjavascript.plainenglish.io\u002Fthe-complete-web-component-guide-part-1-custom-elements-a627af805df8\" target=\"_blank\" rel=\"noopener\">\u003Cstrong>Custom Elements\u003C\u002Fstrong>\u003C\u002Fa>, \u003Ca href=\"https:\u002F\u002Fmedium.com\u002F@mariusbongarts11\u002Fthe-complete-web-component-guide-shadow-dom-2e40921eb77\" target=\"_blank\" rel=\"noopener\">\u003Cstrong>Shadow DOM\u003C\u002Fstrong>\u003C\u002Fa>, and \u003Ca href=\"https:\u002F\u002Fmedium.com\u002F@mariusbongarts11\u002Fthe-complete-web-component-guide-html-templates-a957f1ee43fc\" target=\"_blank\" rel=\"noopener\">\u003Cstrong>HTML Templates\u003C\u002Fstrong>\u003C\u002Fa>) of Web Components will help you understand how your JavaScript framework does all the magic.\u003C\u002Fp>\n\u003Cp>If you have worked with VueJS you are probably familiar with the \u003Ccode>scoped\u003C\u002Fcode> attribute which you can pass to a style element.\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-plaintext\">&lt;style scoped&gt;\n\u002F* local styles *\u002F\n&lt;\u002Fstyle&gt;\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>The \u003Ccode>scoped\u003C\u002Fcode> attribute will make styles of a VueJS component only apply to elements of the current component only. If you are familiar with the three main technologies of Web Components, you probably already know which technology VueJS uses here — the \u003Ca href=\"https:\u002F\u002Fmedium.com\u002F@mariusbongarts11\u002Fthe-complete-web-component-guide-shadow-dom-2e40921eb77\" target=\"_blank\" rel=\"noopener\">\u003Cstrong>Shadow DOM\u003C\u002Fstrong>\u003C\u002Fa>.\u003C\u002Fp>\n\u003Cblockquote>\n\u003Cp>“This is similar to the style encapsulation found in Shadow DOM.” — \u003Ca href=\"https:\u002F\u002Fvue-loader.vuejs.org\u002Fguide\u002Fscoped-css.html#mixing-local-and-global-styles\" target=\"_blank\" rel=\"noopener\">vuejs.org\u003C\u002Fa>\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Cp>Shadow Trees enable us to keep the markup and style of components separate from other code on the page to prevent mixing up the styling of different parts of the website. Check out this article to learn more about \u003Cstrong>Shadow DOM\u003C\u002Fstrong>:\u003C\u002Fp>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fmedium.com\u002F@mariusbongarts\u002Fthe-complete-web-component-guide-shadow-dom-2e40921eb77\" target=\"_blank\" rel=\"noopener\">medium.com\u002F@mariusbongarts\u002Fthe-complete-web-component-guide-shadow-dom-2e40921eb77\u003C\u002Fa>\u003C\u002Fp>\n\u003Ch4>It makes learning new frontend frameworks easy.\u003C\u002Fh4>\n\u003Cp>Many people say that if you master one programming language, it is easy to learn any other. The same applies to frontend frameworks.\u003C\u002Fp>\n\u003Cp>During university, I have had the pleasure of learning the fundamentals of Web Components. Before that, I mainly worked with Angular. Today, I have worked with all three big frameworks — React, VueJS, and Angular.\u003C\u002Fp>\n\u003Cp>The last one I had to learn was React. Due to my experience with Web Components and the two other frameworks, it was effortless for me to get started with React. In the end, it is always the same with a different syntax: You create components. You need to pass data up or down the DOM tree. You need to render some data.\u003C\u002Fp>\n\u003Ch4>Networking effect\u003C\u002Fh4>\n\u003Cp>Chances are high that you have used some kind of Material Design Framework. There is Angular Material for Angular, Vuetify for VueJs, and Material UI for React. And of course, there are plenty more. One might be a little bit better than the other. Still, each of them provides mainly the same reusable UI components like buttons, inputs, dialogs, etc. The implementation is always done with the corresponding framework.\u003C\u002Fp>\n\u003Cp>Wouldn't it be nice we could all share our web components in a single unified web? We could pick the best UI components without caring about frameworks. That would make us independent from JavaScript frameworks. Using Web Components would heavily reduce the costs of changing between them.\u003C\u002Fp>\n\u003Cp>There are already a few Web Component libraries maintained by companies like e.g., Google and SAP:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fmaterial-components\u002Fmaterial-web\" target=\"_blank\" rel=\"noopener\">\u003Cstrong>Material Web Components (MWC):\u003C\u002Fstrong>\u003C\u002Fa> Collection of Web Components following Google's Material Design principles.\u003C\u002Fp>\n\u003C\u002Fli>\n\u003Cli>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FPolymerElements?page=3\" target=\"_blank\" rel=\"noopener\">\u003Cstrong>Polymer Elements:\u003C\u002Fstrong>\u003C\u002Fa> Google's Polymer library lets you build encapsulated, reusable Web Components that work like standard HTML elements\u003C\u002Fp>\n\u003C\u002Fli>\n\u003Cli>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fvaadin\u002Fvaadin\" target=\"_blank\" rel=\"noopener\">\u003Cstrong>Vaadin Web Components:\u003C\u002Fstrong>\u003C\u002Fa> Vaadin components is an evolving set of high-quality user interface web components\u003C\u002Fp>\n\u003C\u002Fli>\n\u003Cli>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FSAP\u002Fui5-webcomponents\" target=\"_blank\" rel=\"noopener\">\u003Cstrong>OpenUI5\u003C\u002Fstrong>\u003C\u002Fa>\u003Cstrong>:\u003C\u002Fstrong> SAP's rich set of enterprise-grade reusable UI elements driven by a lightweight framework\u003C\u002Fp>\n\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Unfortunately, I think those components are not as mature as for example React's Material UI. The more developers are contributing to this, the better it will get.\u003C\u002Fp>\n\u003Ch4>Learning Web Components is easy.\u003C\u002Fh4>\n\u003Cp>Learning Web Components is easier than you might think. They consist of three main technologies:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fjavascript.plainenglish.io\u002Fthe-complete-web-component-guide-part-1-custom-elements-a627af805df8\" target=\"_blank\" rel=\"noopener\">\u003Cstrong>Custom elements\u003C\u002Fstrong>\u003C\u002Fa>\u003C\u002Fp>\n\u003C\u002Fli>\n\u003Cli>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fmedium.com\u002F@mariusbongarts11\u002Fthe-complete-web-component-guide-html-templates-a957f1ee43fc\" target=\"_blank\" rel=\"noopener\">\u003Cstrong>HTML templates\u003C\u002Fstrong>\u003C\u002Fa>\u003C\u002Fp>\n\u003C\u002Fli>\n\u003Cli>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fmedium.com\u002F@mariusbongarts11\u002Fthe-complete-web-component-guide-shadow-dom-2e40921eb77\" target=\"_blank\" rel=\"noopener\">\u003Cstrong>Shadow DOM\u003C\u002Fstrong>\u003C\u002Fa>\u003C\u002Fp>\n\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Get started by following this series of articles:\u003C\u002Fp>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fjavascript.plainenglish.io\u002Fthe-complete-web-component-guide-part-1-custom-elements-a627af805df8\" target=\"_blank\" rel=\"noopener\">javascript.plainenglish.io\u002Fthe-complete-web-component-guide-part-1-custom-elements-a627af805df8\u003C\u002Fa>\u003C\u002Fp>\n\u003Cp>Assuming you are using a library like \u003Ca href=\"https:\u002F\u002Fjavascript.plainenglish.io\u002Fbuild-your-own-blog-portfolio-with-web-components-lit-library-2701dffc735f\" target=\"_blank\" rel=\"noopener\">Lit\u003C\u002Fa> or Stencil, development is not that different, let alone more complicated than using a modern JavaScript library. Have a look at this series of articles to build your own Medium Blog portfolio with Web Components.\u003C\u002Fp>\n\u003Cp>It will start by using plain HTML, CSS, and JavaScript. After that, it will use the \u003Ca href=\"https:\u002F\u002Fjavascript.plainenglish.io\u002Fbuild-your-own-blog-portfolio-with-web-components-lit-library-2701dffc735f\" target=\"_blank\" rel=\"noopener\">Lit\u003C\u002Fa> library to make development easier.\u003C\u002Fp>\n\u003Ch3 id=\"final-thoughts\">Final Thoughts\u003C\u002Fh3>\n\u003Cp>Web Components will not replace frontend frameworks in the near future. Nevertheless, they can enhance those frameworks by replacing their component layer with a native and uniform solution.\u003C\u002Fp>\n\u003Chr>\n\u003Cp>Thanks for reading!\u003C\u002Fp>\n\u003Cp>Want to learn more about how I scaled my Chrome Extension to almost 100,000 users as a solopreneur? Subscribe to my stories or follow me on LinkedIn and Twitter.\u003C\u002Fp>\n\u003Cp>If you read a lot online, make sure to check out my Chrome Extension loved by 90,000+ active user - it's free:\u003C\u002Fp>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fweb-highlights.com\" target=\"_blank\" rel=\"noopener\">web-highlights.com\u003C\u002Fa>\u003C\u002Fp>\n",[],[],1796321908964]