5

Guys, normal state management is so good in React!! Why should we learn redux? its scary, the stores, actions, reducers what the hell :p

Comments
  • 4
    If you're going to learn redux, just learn reactive functional program and eliminate the magic.
  • 1
    @SortOfTested ok cool :) ,i understood actions, but the reducers are a bit confusing, reducers do the same things as setState right?
  • 2
    I think Redux is one of those things that isn't without merit BUT largely came about early in React history for it's own reasons and ... I'm not sure that those reasons are ALL valid anymore.

    Still plenty of projects out there with it, so some folks have to know it / use it and so forth.

    I think a lot of what we do is really steeped in history and even if the reasons to do X, Y, Z aren't there anymore ... can't just un-weave the weave / redesign everything every time the world changes.
  • 3
    Just use context, but even with context you're going to see it used 5 different ways.

    React is trash.
  • 0
    Stop looking at state management libraries as whole and sole solutions to your apps.
    Explore a bit more, differentiate the parts of your app.
    For ex - You could use react-async to handle all of your REST data and never hook it up with redux or any other state management
    And for the remaining part i.e. the local state, you could use any small state management library

    This way you will never come across redux trash boilerplate code and live a happy life!
  • 1
    @onkarj oh great yet another library to add to the already bloated dependency chain needed to use react in the first place.
  • 2
    @Programmatic93
    Its way cooler if you call pulling every new shiny package you see "build-your-own-lightsaber".

    Also make sure to call yourself a full stack dev, and if possible, call everything you make a microservice, even when it's just a static SPA that calls data layer api.
  • 1
    @SortOfTested let's also add some 3rd party duplicated tools like yarn instead of npm and see what fun issues we run into later

    Whatever happened to "keep it simple stupid"?
  • 0
    @Programmatic93, well there are things that you can use and there are things that you can drop in this react ecosystem, you just have to be clever enough in picking n dropping things and getting an ultimate mix for the kind of app you are targeting.

    Otherwise, use wordpress if u want everything a click away😆
  • 1
    @Programmatic93
    Hey now, yarn had a purpose for 5 minutes before npm duplicated the feature and made it irrelevant. We should all just switch to deno for builds, I hear it's better feeling.
  • 0
    @onkarj that's called a fragmented ecosystem and it's terrible researching accurate documentation with an ecosystem like that.
  • 1
    @Programmatic93

    On the other hand you have lots of options ;)
  • 0
    @Programmatic93 then what is the alternative here!? What is it that you people use for medium to large front end projects?
  • 0
  • 0
    Oh well, better than wordpress then
  • 1
    I m a vue developer myself on my current job. You see, problem with using vue is that u get so comfortable using it, u become a couch potato n never want to go out in the world of react again
  • 1
    🤮 Redux
  • 0
    @N00bPancakes @onkarj i work in react everyday, should i also learn vue, not much vue jobs here in mumbai area though
  • 1
    @souvikpunk I guess you should learn whatever comes in your way
Add Comment