#Web-Components
-
Failing at web components
I think I should know about Web Components™ I have no idea how this is going to work, but I have used Vue & React components in the past. I personally feel like Web Components should be the way forward, but my lazy self has not spent any serious time trying to get to grips with them
but here’s what I imagine a web component might look like. Absolute pseudo-code. I know nothing.
<script> // some JS goes in here to make things work </script> <template> <!-- some HTML goes in here --> </template> <style> /* some scoped CSS go in here */ </style>
This is probably a reflection of how much time I’ve spent in Vue.js recently, but it’s conceptually what I’m imagining is required to build something as a Web Component.
Read "Failing at web components"