Redux – Not Dead Yet (2018)
blog.isquaredsoftware.com
Redux – Not Dead Yet (2018)
1–10 of 133 posts
Re: Redux – Not Dead Yet (2018)
#2I first wrote it back in 2018, and just updated it yesterday with some additional links and comparisons.
(Actually was considering retitling it after getting some feedback last night, but given that the link just got submitted here, I'll leave it as-is for now.)
A few quick notes:
- If you haven't looked at Redux in a while, please try out our official Redux Toolkit package [0], which is now our recommended approach for writing Redux logic, and the React-Redux hooks API [1]. We're going to be teaching both of those as the default approach for using Redux going forward.
- We have a new "Style Guide" docs page that gives our official guidance on suggested usage patterns [2]
- On that note, I'm working on an ongoing major rewrite of the Redux core docs [3]. My current task is creating a new "Quick Start" tutorial, which will be a "top-down" intro to using Redux to stand alongside the existing "bottom-up" tutorial sequence. The goal of the Quick Start section is to quickly introduce Redux concepts, and show RTK and hooks as the "right way to write Redux code", without going into the details of how it works under the hood, so that folks can get started now and learn the underlying aspects later. I've an early partial WIP draft PR up [4], and hope to finish the first draft in the next few days. Once the Quick Start page is done, I'll be turning my attention to rewriting the main tutorial sequence in order to remove outdated terms, clarify explanations, and teach simpler patterns (like using "ducks" files instead of splitting code across multiple files).
If anyone's got questions on anything I wrote in the article or otherwise Redux-related, ask away!
[0] https://redux-toolkit.js.org
[1] https://react-redux.js.org/api/hooks
[2] https://redux.js.org/style-guide/style-guide
Re: Redux – Not Dead Yet (2018)
#3Are there any popular alternatives which don't use reducers?
EDIT: thanks for all the responses, I'll check them out :)
Re: Redux – Not Dead Yet (2018)
#4Re: Redux – Not Dead Yet (2018)
#5Re: Redux – Not Dead Yet (2018)
#6I've recently tried using Redux for a side-project. While it solves the problem (organizing state), I feel there is too much boilerplate for my small project. Are there any popular alternatives which don't use reducers? EDIT: thanks for all the responses, I'll check them out :)
Re: Redux – Not Dead Yet (2018)
#7I've recently tried using Redux for a side-project. While it solves the problem (organizing state), I feel there is too much boilerplate for my small project. Are there any popular alternatives which don't use reducers? EDIT: thanks for all the responses, I'll check them out :)
You may be happy with just using hooks, though.
Re: Redux – Not Dead Yet (2018)
#8I really think it should die, from a DDD perspective EDA should be handled as backend tasks with CQRS. If your api server isn't handling that then you really should stand up a BFF. I get that Redux is designed to handle all of that on the front end but it just doesn't belong there. I have seen too many projects devolve into garbage because they are trying to shoehorn too much crap into reducer patterns when it just d…
Re: Redux – Not Dead Yet (2018)
#9I've recently tried using Redux for a side-project. While it solves the problem (organizing state), I feel there is too much boilerplate for my small project. Are there any popular alternatives which don't use reducers? EDIT: thanks for all the responses, I'll check them out :)
Re: Redux – Not Dead Yet (2018)
#10I think the addition of React's hooks and context api actually make Redux easier to use, and I like the purity of its role as a state manager. I personally find that its cleaner to keep the overall application state in redux than to hold onto it inside of React, and leave react to manage its own component's state regarding ui level interactions.