{"id":2512,"date":"2024-06-03T08:27:40","date_gmt":"2024-06-03T14:27:40","guid":{"rendered":"https:\/\/frontendmasters.com\/blog\/?p=2512"},"modified":"2024-06-03T08:27:41","modified_gmt":"2024-06-03T14:27:41","slug":"a-common-web-component-learning-blunder","status":"publish","type":"post","link":"https:\/\/frontendmasters.com\/blog\/a-common-web-component-learning-blunder\/","title":{"rendered":"A common web component learning blunder"},"content":{"rendered":"\n<p>Dave posts about this <a href=\"https:\/\/daverupert.com\/2024\/05\/cold-turkey-wont-fix-your-javascript-addiction\/\">common web component learning blunder<\/a>. The blunder is&#8230; <em>not<\/em> using a framework. I&#8217;m very guilty of this myself. I was <a href=\"https:\/\/front-end.social\/@chriscoyier\/112469573847186257\">just commenting<\/a> about how the lifespan of web components could be wonderfully long if we keep them dependency free, which theoretically we can because they are a native part of the platform. But&#8230;<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>If you take anything from this post, please understand this:\u00a0<em>web components (most likely) weren\u2019t designed for you<\/em>. Not to dissuade you from using them, but they were\u00a0<a href=\"https:\/\/blog.domenic.me\/the-extensible-web\/\">purposefully designed<\/a>\u00a0to be\u00a0<a href=\"https:\/\/extensiblewebmanifesto.org\/\">a low-level bare metal primitive<\/a>\u00a0for library authors to build on; they were designed to be used with a library, a thin layer of abstraction butter on top.<\/p>\n<\/blockquote>\n\n\n\n<p>You&#8217;re <em>supposed<\/em> to use them with a framework on top. As Dave lays out, they buy a lot and cost little. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dave posts about this common web component learning blunder. The blunder is&#8230; not using a framework. I&#8217;m very guilty of this myself. I was just commenting about how the lifespan of web components could be wonderfully long if we keep them dependency free, which theoretically we can because they are a native part of the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2514,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[29],"tags":[36],"class_list":["post-2512","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-the-beat","tag-web-components"],"acf":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/frontendmasters.com\/blog\/wp-content\/uploads\/2024\/06\/cHJpdmF0ZS9zdGF0aWMvaW1hZ2Uvd2Vic2l0ZS8yMDIyLTA0L2xyL3B4MTA1Njc3Mi1pbWFnZS1rd3Z3Y3h6ay5qcGc.webp?fit=1024%2C683&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/2512","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/comments?post=2512"}],"version-history":[{"count":1,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/2512\/revisions"}],"predecessor-version":[{"id":2515,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/2512\/revisions\/2515"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/media\/2514"}],"wp:attachment":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/media?parent=2512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/categories?post=2512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/tags?post=2512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}