3 ms·
Previously used Vue and switched back to React. I have a few gripes about Vue for larger projects. Most have to do with a lack of 'namespacing' or ability to i
by ajoy 9y ago
Previously used Vue and switched back to React.
I have a few gripes about Vue for larger projects. Most have to do with a lack of 'namespacing' or ability to isolate functions.
1. Plugins - Eg. Recently VueResource plugin was deprecated, but i had a hard time finding out where all the plugin was being used. The dependencies were hard to figure out.
2. Functions introduced in Plugins added to a parent component are inherited in all the child components' 'namespace'. It was hard for me to determine if a function that I am writing has a naming conflict with a plugin function, until runtime.
3. Since this dependency is not obvious, a new dev looking at a piece of code that is using some functionality inserted by a plugin, needs to be aware of all plugins that have been interjected at any of it’s parent level components and the functions they introduce.
4. Mixins help with re-use code, but can lead to potential function naming conflicts.
Maybe I was doing things wrongly w/ Vue. If so, any recommendations are welcome.