Comment by TehShrike

Comment by TehShrike 4 hours ago

2 replies

I worked on a business app made with lit web components and all properties being stringly typed was a real drag. It didn't compare to a realtime-first component library.

jdkoeck an hour ago

Alas, that’s a common misconception! You’re confusing properties with attributes. Attributes are set through HTML and are stringly typed, but litjs properties can be any js value.

For instance, I have a project with a small web component that displays data from a duckdb wasm connection. The connection object is passed as a property and it works flawlessly.

spankalee 35 minutes ago

I don't understand thinking that properties had to be strings. Did you just refuse to use property bindings or what?