What are the advantages and disadvantages of mobx and Redux, especially in a React-Native environment?

Lately, I heard everyone talking about mobx, I used (use) Redux in a React Native production application.

I just look to see if anyone has experience with both and can advise where each one has advantages over the other.

+6
source share
2 answers

I will put a summary of my approaches. I wrote in a Reddit comment :

  • Redux is highly dependent on the principles of functional programming:

    • "" , , "" (.. , ) .
    • , " " ( , , ).
    • Idiomatic Redux "" , . , ,
    • , , Redux , switch.
    • , , .
  • MobX - :

    • "", , , , .
    • , someObject.someField = someValue someArray.push(someValue), MobX.
    • Idiomatic MobX code .
    • , , , .
    • , , , , .

, Preethi Kasireddy MobX vs Redux: ReactConf 2017 Robin Wieruch article Redux MobX: . , React/Redux.

+10

MobX Redux , . ; javascript.

- , .

@saiki , , , MobX vs Redux.

MobX , MVVM:

enter image description here

Redux :

- javascript. , , - ( ) . enter image description here

byExample

+5

Source: https://habr.com/ru/post/1016431/


All Articles