News for hackers. Stuff that matters.
Re:Show HN: ElemX – Native Web Components Using MobX with Vu... by spankalee on Tuesday June 09, 2020 @02:46PM (#23469442)
Looks very nice!

FYI, we've been able to get MobX to work very nicely while still keeping binding expressions as actual JavaScript with ${} expressions.

The benefits there are that you get syntax-highlighting and some type-checking of the expressions for free without extra tooling that understands your template syntax. You could still keep the Vue-like syntax for the rest of the templates. Might be something to look into.

Re:Show HN: ElemX – Native Web Components Using MobX with Vu... by agquick on Tuesday June 09, 2020 @03:52PM (#23470167)
Thanks for taking a look! That’s actually a great idea. It’s always a trade off with bindings in html templates, you lose the things you just mentioned. Right now the bindings are passed to the mobx reactions tied to the element, I’d be curious how that could still be maintained with the proper scoping.