|
|
|
|
|
by jongjong
933 days ago
|
|
Interesting. I recognize that lit-html is much more lightweight than React and others but personally I really like to avoid any magic at all and I like being forced to pass strings between components. It reminds me of an Alan Kay quote about OOP "The big idea is messaging". You want your components to be passing around messages, not state. This seems to go against FP philosophy but I've found that it really works for OOP. After all, OOP is traditionally about state encapsulation and prioritizing concern boundaries over logic/state boundaries as in FP. Note that it's still possible to pass complex objects to native we components but only imperatively via properties so it's a lot higher friction (as it should be). |
|