by Blixs · 9y ago · 0 comments
I never studied Vue, but the article starts saying "Both have separate, but commonly used, router and state management libraries". This doesn't look like "out of the box" to me.
For most Single Page Applications, it’s recommended to use the officially-supported vue-router library. For more details, see vue-router’s documentation.
https://github.com/vuejs/vue-router
--
https://vuejs.org/v2/guide/state-management.html
Vue offers vuex: our own Elm-inspired state management library.
--
Out of the box or not, they're part of the same github org, they're officially supported and they're documented in the official docs. I think this is just splitting hairs.
And react-router, while not being on the same github, is pretty much considered a standard too. It's ok to not split hairs for vue.js, but then you shouldn't do the same for react...
(I'm one of the current maintainers of Redux.)
It feels like you're incurring tech debt by depending on React Router but unfortunately since it's the defacto standard there's very few other viable options.
By contrast Vue feels like they care about their ecosystem and existing Customer code bases and will publish nice migration guides when they make breaking changes showing how old functionality can be migrated to their new APIs.
The kind of standard that just doesn't stop giving backwards incompatible BS releases...
Vue has a lot of things going for it. Documentation is not one of them.
When using Vue CLI it configures a project for you with vue-router and vuex.