5
11 Comments

How to use React useReducer hook like a pro

submitted this link to Icon for group React
React
on September 20, 2021
  1. 1

    I liked your post. Thanks for sharing..

  2. 1

    Cool. I learned a few things

    1. 1

      Glad you've liked it!

  3. 1

    Great job. Keep going!

  4. 0

    An Fyi, the fact that you need to know so much about how to manage state in React, just shows how pathetic React is at handling state.

    1. 1

      Managing state is a hard issue in any sufficiently large and complex software.

      1. 1

        This is correct. So many different architectures in other languages as well. I'm working on a Flutter app and it's the same thing. It doesn't mean that React specifically is bad at handling state, any software needs state management.

      2. 0

        Let me put this bluntly: in React, it's pretty insane to have non trivial state. If you have a large and complex software + React, that will make it probably 5-10x more complex than it should be.

        1. 1

          Do you have examples of other frameworks or libraries where you consider that managing state is 5-10x simpler than in React?

          1. 0

            Any language that is not JS.
            Haven't tried Vue/Angular, but I'm almost certain they handle it better.

    2. 1

      This comment was deleted 5 years ago.

Trending on Indie Hackers
I'm a lawyer who launched an AI contract tool on Product Hunt today — here's what building it as a non-technical founder actually felt like User Avatar 142 comments “This contract looked normal - but could cost millions” User Avatar 54 comments A simple way to keep AI automations from making bad decisions User Avatar 53 comments Never hire an SEO Agency for your Saas Startup User Avatar 41 comments 👉 The most expensive contract mistakes don’t feel risky User Avatar 41 comments The indie maker's dilemma: 2 months in, 700 downloads, and I'm stuck User Avatar 40 comments