News for hackers. Stuff that matters.
Re:How to design a platform-independent UI framework? by dtagames on Thursday August 29, 2024 @08:52AM (#41390294)
Web components are bare metal standard stuff that works on all devices. You could use Lit as a small shim for reactive rendering. That way, you can create your component library with nearly zero dependencies and yet use it in desktop-equivalent apps (via Electron or distribute as a web app).
Re:How to design a platform-independent UI framework? by CodeVisio on Thursday August 29, 2024 @12:27PM (#41392531)
If I got it right, does your solution assume a web engine of some sort behind the scenes?
Re:How to design a platform-independent UI framework? by dtagames on Friday August 30, 2024 @10:48AM (#41401259)
No. In fact, the whole goal is to stay as close to "bare metal" as possible without any dependencies other than the browser (and Lit). I wrote an article[0] about this that you might find helpful.

[0] https://medium.com/gitconnected/getting-started-with-web-com...