(#m7o5dpa) @prologic@twtxt.net Ok, iโm not used to docker so i need to set it up for working on it.
I never used MithrilJS but it seems to be the usual JSX style of DOM structure.
#syvxcuq
(#m7o5dpa) @prologic@twtxt.net The PWA setup is a bit confusing to me, can you explain how to run it?
I can see that youโre using the templating in the html but iโm lost on how it bind with the backend.
My usual PWA setup is entirely separated from the backend.
I also worked a lot with NodeJS too and now iโm working on creating a bundle-less setup that is light and easy to use and donโt need any tooling at all except for a static server and a browser.
#qms4xwa
(#m7o5dpa) @prologic@twtxt.net Great, Iโll check out the PWA first then!๐
While MithrilJS is a good library I find if wasted when not used with JSX, you can probably enhance the syntax by using htm for the templating if you want to keep it light or use the renderer of esbuild directly.
In my projects I usually use uhtml, itโs a simple to use and blazing fast templating library, It doesnโt even use the Shadow DOM the usual JSX rely on, you should try it for your next project. ๐
#m3i53hq
(#m7o5dpa) @prologic@twtxt.net Understandable. ๐
Then Iโll try to make my best to make something nice. ๐
One last question, is it okay to go with standard fetch for API calls or youโre planning to use twt.js?
The repo seems archived though.
#qa2ywaq
(#m7o5dpa) @prologic@twtxt.net I can agree on JSX and similar but I must say that arrow functions, classes and so on are quite nice once you get used to them.
I too ended up wanting less and less but exactly for that reason I really enjoy those new stuff the platform offers natively.
Anyway, Iโll keep your style as much as I can. ๐
#pv7ouaq
(#m7o5dpa) @ullarah@txt.quisquiliae.com Iโll try! โ๏ธ
#espzbga