6 ms·
I'm not going to make any claims that Redux is dead or dying; I'm mostly oblivious to the state of React (no pun intended). I'm coming from Knockout and Angular
by bigtunacan 9y ago
I'm not going to make any claims that Redux is dead or dying; I'm mostly oblivious to the state of React (no pun intended). I'm coming from Knockout and Angular making the switch to Vue.
This line from the article got me though.
"plus all of its usage with other JS frameworks like Angular, Ember, and Vue"
Are people actually using Redux with Vue? Everyone I know is using Vuex for state management for Vue.
- swyx 9y agoyes i have been wondering who uses redux without react. redux tries so hard to be a react independent library, but maybe it shouldnt. ¯\_(ツ)_/¯ the maintainers do not agree.
- acemarke 9y agoAnd why shouldn't it be independent of React? While Redux and React-Redux were developed together, the Redux core is 100% pure plain vanilla JS, and the fact that bindings exist for a whole bunch of other frameworks shows that it works fine that way. Now, Dan and Andrew have suggested that in order to have React-Redux work properly with the upcoming async React rendering, we should possibly consider reimplementing the Redux store logic to use React component state as the basis. In other words, you'd probably do something like `import {createStore} from "react-redux"`. I'm not keen on that idea myself, and am hopeful we can find an approach that will allow use of a separate standard Redux store and still get the benefits of async React rendering down the road.
- swyx 8y agomaybe what im really after is what react-router-dom does, which is reexport react-router. stop making me wire up the core library itself, if you have a binding it should "just work" (TM)
- tomduncalf 9y agoAlthough anecdotally the opposite (people using React without Redux) is increasing (whether they are using component state, MobX or something else), so I don’t think from that point of view (as well as others!) it would make sense for Redux to be “part of” React
- acemarke 9y agoI don't have any actual numbers for its usage with Vue, but I can say that I've definitely seen several Redux+Vue adapter libs: https://github.com/markerikson/redux-ecosystem-links/blob/master/library-integration.md#vue https://github.com/markerikson/redux-ecosystem-links/blob/ma... That said, I presume the majority of Vue users are using VueX.
- deleted 9y ago[deleted]