-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is the Mixin format judicious? #3
Comments
Ok, let me try to address does one at a time:
I understand that having standalone libraries and global structures for messages, locales and formatters could work just fine, but complex apps with tons of components and translation per component by professional translators will require some sort of coupling between components and the messages, including some sort of validation processes, and that's what this mixin is doing. If a component brings the mixin into the definition, it means it will require some machinery under the hood to guarantee that messages, formatters and locales are in place to facilitate the rendering of those messages. |
Alright! |
Hello,
Just some thoughts,
Is there any added value in making this a react mixin?
intl.date
instead ofthis.intlDate
. Mixing many different concerns into one component also pollutes the dynamicthis
pointer which is known to be annoying (React bind it only for the top level functions of a component). With composition, the lib is no longer coupled to React components, and can be called from other places.Cheers
The text was updated successfully, but these errors were encountered: