News for hackers. Stuff that matters.
Re:JavaScript import maps are now supported cross-browser by flanbiscuit on Wednesday May 03, 2023 @09:48AM (#35802354)
If you like React but also don't want a build step, take a look at Preact (only 3kb gzipped) + HTM, their alternative to JSX that uses tagged template literals, so it works in the browser (but also can be compiled away in a build step)

https://preactjs.com/guide/v10/getting-started#alternatives-...

https://github.com/developit/htm

Re:JavaScript import maps are now supported cross-browser by ilrwbwrkhv on Wednesday May 03, 2023 @11:38AM (#35803717)
Or mithril. People sleep on it but it's an amazing little library with a router.
Re:JavaScript import maps are now supported cross-browser by joduplessis on Wednesday May 03, 2023 @02:31PM (#35805950)
Preact is absolutely amazing. +1 from me - I dropped like 100kb (on a very bandwidth constraint project) by using Preact.
Re:JavaScript import maps are now supported cross-browser by spankalee on Wednesday May 03, 2023 @04:52PM (#35807627)
Lit also requires no build step and is shipped only as standard JS modules. It also uses file extensions in all imports so that the required import map to access all files is very short (one index map + one prefix map * 4 core packages). See https://lit.dev
Re:JavaScript import maps are now supported cross-browser by flanbiscuit on Friday May 05, 2023 @09:56AM (#35829238)
Lit is definitely on my radar, I'm just trying to figure out a project I want to use it on. I want to update my personal website but Lit's SSR is "experimental" so I'll probably wait and try SvelteKit or something else.

https://lit.dev/docs/ssr/overview/