Will hooks overthrown redux?

后端 未结 3 634
礼貌的吻别
礼貌的吻别 2021-01-06 13:24

I\'ve been searching for a while about React\'s hooks now, and one question became persistent in my head. Will hooks overthrown redux? This is a fairly old discussion so fir

3条回答
  •  北荒
    北荒 (楼主)
    2021-01-06 13:48

    More than a year has passed since this question was posted.

    I want to add that in my opinion Redux has lost some relevance...

    2 players in my opinion have stolen a big share of Redux's position in the React market:

    1. People have learned how to combine useReducer with useContext to implement a much simpler solution and without third party dependencies. With the advantage that the React team is behind it; which means we will get constant improvements tightly integrated with the React framework.

    2. MobX has been growing it's user base. Mainly because it provides an observer pattern which requires much less boiler plate code than Redux. (This could be debated).

    So even though Redux remains widely used for React projects I foresee this will be gradually reduced overtime... - no pun intended... well may be a little bit ;) -

    Specially for green field development!

提交回复
热议问题