Closed zenorocha closed 9 years ago
:+1:
:+1:
I think @brucelawson with his creative mind would be the perfect fit to write this :squirrel:
FWIW, putting the entire app in a tag is not necessarily a bad thing. The Polymer team does it occasionally. You never know when you might want your entire app to become another element in an even bigger app ;)
+1 to what @robdodson said. A tag is a tag is a tag. If it serves a purpose there's no reason elements can't be full apps. This is no different than an entire ajax app being delivered in a huge .js file with very little markup.
You may want to title the article "silly things you should not do" rather than "can do". e.g. things, while tempting, folks should avoid.
@codepo8 wrote a very similar blogpost about it couple days ago: http://christianheilmann.com/2014/04/18/web-components-and-you-dangers-to-avoid/
Maybe we should just include it here instead of writing another one. Or we could have both.
We all know that as soon as people start discovering Web Components all kinds of silly elements will be created. They will write the whole app inside a tag, re-implement today's HTML tags as custom elements from scratch instead of extending them, and etc.
So why don't we step ahead and talk about before it actually happen?