Re:The Failed Promise of Web Components
by claytongulick on Thursday October 01, 2020 @01:56AM
(#24647802)
Lit-html (not LitElement) would seem to fit the bill.
I build very large and complex apps for my clients using lit-html and vanilla web components.
Mostly just stay in the light dom unless there's a reason to hide in the shadow.
JavaFX bindings are a joy to work with and everything "just works". You have FXML for Mark up, you have controllers for logic, and you have the freedom to create your own beans or database classes or use Spring or whatever you want to do. JavaFX is arguably an external library, but since it is packaged with Java I would say it is closer to being part of the standard library (certainly more so than React is part of JS).
There needs to be a dead simple way to tie the properties of a Web component to a JSON object. That's all it would need for now. I could develop some great small-medium Web apps without a single line of external JS with that alone. No more event triggers followed by queries followed by DOM manipulation. I just want to update a JSON object, and have that immediately reflected on the UI, for both built in and custom components.