Hacker News new | ask | show | jobs
by xanderjanz 2879 days ago
We have high order functions in JS. Which are similar to decorators.
1 comments

Similar, but harder to use safely and correctly in class methods using the new class syntax. There's more surface area for typos and other mismatch errors since you have to type the method names twice. See: https://mobx.js.org/best/decorators.html