3 ms·
https://mobx.js.org/best/decorators.html https://mobx.js.org/best/decorators.html
by solidr53 9y ago
https://mobx.js.org/best/decorators.html https://mobx.js.org/best/decorators.html
- abritinthebay 9y agoThat... doesn't help. From what I see there I get harder to follow, non-idiomatic to anything in JS, code but the bonus is a terser syntax? Great...? I really hope there's a better use case for them because this is not selling me. Literally none of that post is a compelling case. I get the cleaner syntax, that's nice, but it also means now I have to look up what that does. And that decorated properties example? Yikes that's awful - it looks like a code-smell frankly. But all that initial urrrgh factor could be removed by showing me a use case that makes the code significantly more elegant to do `@foo bar` rather than `foo(bar)`.