Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Redux is definitely tricky to get a handle on. Have you considered alternatives such as MobX or using local component state management? Dan Abramov, the creator of Redux, has even come out with articles explaining how in most cases and for most smaller projects it's overkill. Otherwise if you're certain you'd like to use it or it's already in the project you're working on check out Dan's videos on Egghead.io. They're free and go in detail as to how Redux works and really demystifies it.
Lastly - any specific problems? -
vertti4537yIt's somewhat over-engineered honestly. I'm not sure what's the value of not mutating objects in a frontend state management library like this.
Just use those tools like logger and follow your actions and how your reducers spit them out. -
xico1547y@vertti I see where you're coming from, but I think it has many benefits for larger scale applications.
The absence of direct mutation makes the state completely predictable, where the UI is purely a function of the state. Just that alone will eliminate a whole range of possible bugs! It also makes it suuuper easy to do time-travel debugging or mimic user action. :)
And of course, although a bit boilerplatey, Redux does provide a pretty solid, normalized architecture to your app! -
vertti4537y@xico ok yeah I appreciate the value in larger scale apps. In smaller apps, like some small react native app redux seems to kinda slow down the development in some ways. And thing will get a bit confusing when you use local state on the side for some minor things. So it's not like you'll always just let redux handle everything.
Related Rants
-
kiki17You know who sucks at developing APIs? Facebook. I mean, how are so high paid guys with so great ideas man...
-
wxcazee17Here is a tutorial on how to create a contact form in React / Redux.
-
drGreat58So I put a very strict eslint configuration to a 6 month old project .. .. .. .. 924 errors in 27 files .. .. ...
Fucking Redux..
undefined
redux
react native