HTMX + Go + Web Components | Exploring Lit Web Components

32,274
0
Published 2023-09-29

All Comments (21)
  • @cnaccio
    I use web components for salesforce development, and I love them. Love how raw and native they are.
  • @jaysistar2711
    You don't need to build to use LitElement, but you can't use decorators. You just need to add a property to say what your attributes are, register the class once it's defined, and everything should fall into place with no build step.
  • @jtucker87
    He doesn't want TS but he never turns off the TS option in the examples to get the regular JS.
  • @connorlatham9578
    We use Lit for our web apps at work and I'm so happy we use it and not anything else. I just feel like theyre so easy to use.
  • @jaysistar2711
    6:20 From what I've heard, it hashes, but only parses if it hasn't seen that string before, but if it has, it doesn't parse, and internally uses the previous parse.
  • @rickdg
    Once you go the htmx way, why not also generate your JS files in your server language of choice?
  • @bartek...
    Finally! I caught @theprimeagen do programming in HTML 🤣
  • @jogibear9988
    I also love Webcomponents, but I liked the approche google had with polymer (templates) more, instead of the render function wich is now in lit. Cause of this I build my own small base component wich works more like polymer before. With this I build a complete WYSIWYG designer framework in webcomponents (also as a webcomponent), wich also works without any compilation (only ts -> js)
  • @jaysistar2711
    Neon is the thing to bind native Rust code to Node JS code.
  • The existence of build steps for client side javascript still feels morally wrong, htmx is compelling for that reason alone
  • @grinsk3ks
    why does he refuse to `pnpm create vite`?
  • Pretty sure i was tequila drunk for this stream. I’m admitting that, specifically, in fact. Apologies and/or you’re welcome.
  • I don't think I've laughed more than you just dropping chat gpt code in and it installing vue and react alongside each other
  • @danko95bgd
    Bruh vite literally has Lit template with 5 other frameworks... just init the god damn cli aaaaargh
  • @LusidDreaming
    I think apline.js fits better with HTMX than web components, it is much more focused on declarative hypermedia, whereas web components is like react lite, where everything is in the JS and all you can do is pass in props via attributes.
  • @RoccoAugusto
    You could have used regular JavaScript and avoided Typescript. In all the LitElement examples, in the top right hand corner, you could have chosen to show them in .js format instead of .ts