Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
xanderjanz
· 8y ago · 0 comments
We have high order functions in JS. Which are similar to decorators.
Comments
[–]
sbjs
8y ago
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