Can we use `decorators` instead of `extends`?
I always recommend Composition over Inheritance.
Is there an option to use decorators instead of extends? Something like
@validatedForm
class MyForm {
// ...
}
Thank you for the suggestion, should be very cool to use decorators.
Recently I was looking for a solution to inject plugins before the form instance is created, using decorator seems definitely the way to go.
I have to think about of new apis design for the next major version, other enhancements are already scheduled!
@foxhound87 That's awesome! Thanks!
I reopen this issue. I will close it when the new apis will be released.
MobX removed the use of decorators in newer versions, so I’m closing this issue.