Skip navigation
❌ useState ✅ useReducer
0:00 / 0:52

❌ useState ✅ useReducer

Vinny

@hot_town7.1K followers

Visit on X
384 likesDownloadOriginal post

39,133 views

❌ useState ✅ useReducer

28 Comments

Comments from the original post on X (Twitter)

  • BMZ's profile picture

    @_bmz1

    we rediscover Redux now?

    10 likes

  • Vinny's profile picture

    @hot_town

    It seems so

  • Filip Papiernik's profile picture

    @filip_papiernik

    Check render's take, he knows what he is talking about

    4 likes

  • Vinny's profile picture

    @hot_town

    Tbh I need to see examples to really grasp it

    1 like

  • Libes6's profile picture

    @Libes66

    The problem isn't useState, it's how the state is modeled. A discriminated union with useState solves the same issue without introducing a reducer. useReducer is great for complex transitions, but it's not a replacement for proper state modeling.

    4 likes

  • Filip's profile picture

    @aladicf

    Tanstack Store

    3 likes

  • Knox Dracarys's profile picture

    @fatc88

    use Svelte.

    3 likes

  • Vinny's profile picture

    @hot_town

    I like react

    1 like

  • Knox Dracarys's profile picture

    @fatc88

    My condolences

  • MrPotato | Elise's profile picture

    @MrPotatoDip

    This

    1 like

  • Adam's profile picture

    @adam_bobowski

    You guys keep inventing solutions rather than think about the base problem...

    1 like

  • Vinny's profile picture

    @hot_town

    you're right.

  • NaN's profile picture

    @yourfav_dev

    Agents love useState a bit too much

    1 like

  • Vinny's profile picture

    @hot_town

    Junior developers

    1 like

  • Stephen Rayner's profile picture

    @stephen_rayner

    Add narrated audio to your videos

  • Vinny's profile picture

    @hot_town

    merp

  • Уткоробот's profile picture

    @utko_robot

    Just use mobx

  • Vinny's profile picture

    @hot_town

    Why

  • Уткоробот's profile picture

    @utko_robot

    Less boilerplate code and it's much easier to tell what's going on with model

    1 like

  • Vinny's profile picture

    @hot_town

    Sounds like should use this under the hood maybe 🤔

    1 like