3 ms·
What I’m seeing here is not new. It’s this vanilla pattern but with enough back support to leave off the framing and get the syntax highlighting: Var button =
by hyperhello 2y ago
What I’m seeing here is not new. It’s this vanilla pattern but with enough back support to leave off the framing and get the syntax highlighting:
Var button = html(’<button>im a button</button>’);
The html() function is trivial, but it just doesn’t feel like real programming to do this, even though there’s nothing else to it in the end.
- hyperhello 2y agoDownvote me but tell me why. The example is using .onclick, .textContent, etc in a completely vanilla way. I'm just pointing out you can get all the way vanilla and it still works. What's the issue?
- dangsux 2y ago[dead]
- novocantico 2y agololinder explained it well in here
- hyperhello 2y agoHe did, and he pointed out the point is just IDE support so it has typing and autocomplete and syntax highlighting. Thanks, we agree!
- mock-possum 2y agoTagged template literals for html view templating is what I LOVE about Lit and lit-html. It’s JavaScript you can run natively in browser, no server or pre processor/build step necessary.