LRG

An LRG copypasta series

Software

Welcome to this selection of carefully crafted articles and essays.

Nah, I’m kidding, it’s just a bunch of chaotic thoughts, experiments, notes and stuff, barely organised into some kind of public blog.

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 more

Cover image: Traverson, CC BY-SA 4.0 https://creativecommons.org/licenses/by-sa/4.0creativecommons.org , via Wikimedia Commonscommons.wikimedia.org