▲ | TehShrike 12 hours ago | |||||||||||||||||||||||||
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 9 hours ago | parent | next [-] | |||||||||||||||||||||||||
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. | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
▲ | WickyNilliams 7 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||
If you are consuming web components in any other framework, they will be setting properties, not attributes, by default Attributes are the default for html | ||||||||||||||||||||||||||
▲ | spankalee 9 hours ago | parent | prev [-] | |||||||||||||||||||||||||
I don't understand thinking that properties had to be strings. Did you just refuse to use property bindings or what? |